From 5d323439193f650b2c9b033fe4769706eb032ec8 Mon Sep 17 00:00:00 2001 From: Malkierian Date: Mon, 6 Mar 2023 21:17:27 -0700 Subject: [PATCH] Modify cutsceneIndex in scene transition autosave to include use-cases outside of normal vanilla play. (#2588) --- soh/src/code/z_play.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }