Skip to content

Commit

Permalink
fix: active global script double-running due to warp script check
Browse files Browse the repository at this point in the history
  • Loading branch information
EmilyV99 committed Sep 9, 2023
1 parent a874415 commit 28d9aaf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/zc/zelda.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2303,6 +2303,7 @@ int32_t init_game()


if ( Hero.getDontDraw() < 2 ) { Hero.setDontDraw(0); }
initZScriptGlobalScript(GLOBAL_SCRIPT_GAME); // before 'openscreen' incase FFCore.warpScriptCheck()
openscreen();
show_subscreen_numbers=true;
show_subscreen_life=true;
Expand Down Expand Up @@ -2347,7 +2348,6 @@ int32_t init_game()
}
}

initZScriptGlobalScript(GLOBAL_SCRIPT_GAME);
FFCore.initZScriptHeroScripts(); //Call again so we're set up for GLOBAL_SCRIPT_GAME
FFCore.initZScriptDMapScripts(); //Call again so we're set up for GLOBAL_SCRIPT_GAME
FFCore.initZScriptItemScripts(); //Call again so we're set up for GLOBAL_SCRIPT_GAME
Expand Down

0 comments on commit 28d9aaf

Please sign in to comment.