summaryrefslogtreecommitdiff
path: root/soh/src/code
diff options
context:
space:
mode:
authorMalkierian <malkierian@live.com>2023-03-06 21:17:27 -0700
committerGitHub <noreply@github.com>2023-03-06 23:17:27 -0500
commit5d323439193f650b2c9b033fe4769706eb032ec8 (patch)
treeb90c62c9fb88d0c152ac27da2ddf15578ebfc571 /soh/src/code
parentce115272cd26ad65ad67c32e25035b38e105352f (diff)
Modify cutsceneIndex in scene transition autosave to include use-cases outside of normal vanilla play. (#2588)
Diffstat (limited to 'soh/src/code')
-rw-r--r--soh/src/code/z_play.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/soh/src/code/z_play.c b/soh/src/code/z_play.c
index 981f5b975..418eff501 100644
--- a/soh/src/code/z_play.c
+++ b/soh/src/code/z_play.c
@@ -874,7 +874,7 @@ void Play_Update(PlayState* play) {
// Also don't save when you first load a file to prevent consumables like magic from being lost
// Also don't save if there's a pending shop sale to prevent getting the item for a discount!
if ((CVarGetInteger("gAutosave", 0) >= 1) && (CVarGetInteger("gAutosave", 0) <= 3) &&
- (gSaveContext.cutsceneIndex == 0) && (play->gameplayFrames > 60) && (gSaveContext.pendingSale == ITEM_NONE) &&
+ (gSaveContext.cutsceneIndex < 0xFFF0) && (play->gameplayFrames > 60) && (gSaveContext.pendingSale == ITEM_NONE) &&
(play->sceneNum != SCENE_YOUSEI_IZUMI_TATE) && (play->sceneNum != SCENE_KAKUSIANA) && (play->sceneNum != SCENE_KENJYANOMA)) {
Play_PerformSave(play);
}