From 41eb6c585d71fd475746a14dac8a02d411ec49b5 Mon Sep 17 00:00:00 2001 From: Christopher Leggett Date: Mon, 26 Sep 2022 11:52:53 -0400 Subject: [PATCH] Excludes the master sword in the Ganon Battle from triggering autosave. (#1594) --- soh/src/code/z_parameter.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/soh/src/code/z_parameter.c b/soh/src/code/z_parameter.c index 83a1b19e8..eb6640d09 100644 --- a/soh/src/code/z_parameter.c +++ b/soh/src/code/z_parameter.c @@ -2607,6 +2607,10 @@ void PerformAutosave(GlobalContext* globalCtx, u8 item) { case ITEM_ARROWS_LARGE: case ITEM_SEEDS_30: break; + case ITEM_SWORD_MASTER: + if (globalCtx->sceneNum == SCENE_GANON_DEMO) { + break; + } default: Gameplay_PerformSave(globalCtx); break;