diff options
| author | Josh Bodner <30329717+jbodner09@users.noreply.github.com> | 2022-12-04 17:13:29 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-12-04 20:13:29 -0500 |
| commit | 39b80137f68e060f8e47ef59e94dabd51f0a825b (patch) | |
| tree | f56832cfd411826543bd89f70d5a29904992bacd /soh/src/code | |
| parent | 5d2b794c004a118582c95004cf6cce33d021dd1f (diff) | |
Don't autosave in the Chamber of Sages (#2076)
Diffstat (limited to 'soh/src/code')
| -rw-r--r-- | soh/src/code/z_parameter.c | 2 | ||||
| -rw-r--r-- | soh/src/code/z_play.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/soh/src/code/z_parameter.c b/soh/src/code/z_parameter.c index 0c3afc651..37bf19e09 100644 --- a/soh/src/code/z_parameter.c +++ b/soh/src/code/z_parameter.c @@ -2632,7 +2632,7 @@ u8 Item_CheckObtainability(u8 item) { } void PerformAutosave(PlayState* play, u8 item) { - if (CVar_GetS32("gAutosave", 0)) { + if (CVar_GetS32("gAutosave", 0) && (play->sceneNum != SCENE_KENJYANOMA)) { if (CVar_GetS32("gAutosaveAllItems", 0)) { Play_PerformSave(play); } else if (CVar_GetS32("gAutosaveMajorItems", 1)) { diff --git a/soh/src/code/z_play.c b/soh/src/code/z_play.c index 0203c7ca2..c34c98f44 100644 --- a/soh/src/code/z_play.c +++ b/soh/src/code/z_play.c @@ -852,7 +852,7 @@ void Play_Update(PlayState* play) { // Don't autosave in grottos or cutscenes // Also don't save when you first load a file if (CVar_GetS32("gAutosave", 0) && (gSaveContext.cutsceneIndex == 0) && (play->gameplayFrames > 60) && - (play->sceneNum != SCENE_YOUSEI_IZUMI_TATE) && (play->sceneNum != SCENE_KAKUSIANA)) { + (play->sceneNum != SCENE_YOUSEI_IZUMI_TATE) && (play->sceneNum != SCENE_KAKUSIANA) && (play->sceneNum != SCENE_KENJYANOMA)) { Play_PerformSave(play); } } |
