diff options
Diffstat (limited to 'soh/src/code')
| -rw-r--r-- | soh/src/code/z_parameter.c | 9 | ||||
| -rw-r--r-- | soh/src/code/z_play.c | 2 |
2 files changed, 9 insertions, 2 deletions
diff --git a/soh/src/code/z_parameter.c b/soh/src/code/z_parameter.c index 1d4e59f07..537d185bd 100644 --- a/soh/src/code/z_parameter.c +++ b/soh/src/code/z_parameter.c @@ -2704,7 +2704,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)) { @@ -2745,6 +2745,13 @@ void PerformAutosave(PlayState* play, u8 item) { if (play->sceneNum == SCENE_GANON_DEMO) { break; } + case ITEM_BOMBCHU: + case ITEM_BOMBCHUS_5: + case ITEM_BOMBCHUS_20: + if (!CVar_GetS32("gBombchuDrops", 0)) { + Play_PerformSave(play); + } + break; default: Play_PerformSave(play); break; diff --git a/soh/src/code/z_play.c b/soh/src/code/z_play.c index b08f9cee4..dab5411b9 100644 --- a/soh/src/code/z_play.c +++ b/soh/src/code/z_play.c @@ -870,7 +870,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); } } |
