summaryrefslogtreecommitdiff
path: root/soh/src/code/z_parameter.c
diff options
context:
space:
mode:
authorJosh Bodner <30329717+jbodner09@users.noreply.github.com>2022-12-04 17:54:23 -0800
committerGitHub <noreply@github.com>2022-12-04 20:54:23 -0500
commit656dcd2021a7e3ac0f4f0f2a353aa54c81cc7878 (patch)
treef00795bd8432b1a6030b61e6ca56fd96b849a024 /soh/src/code/z_parameter.c
parent39b80137f68e060f8e47ef59e94dabd51f0a825b (diff)
Don't autosave after obtaining bombchus if bombchu drops are enabled (#2077)
Diffstat (limited to 'soh/src/code/z_parameter.c')
-rw-r--r--soh/src/code/z_parameter.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/soh/src/code/z_parameter.c b/soh/src/code/z_parameter.c
index 37bf19e09..32ae18ab5 100644
--- a/soh/src/code/z_parameter.c
+++ b/soh/src/code/z_parameter.c
@@ -2673,6 +2673,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;