From 6e8b8201840d905e38bb15fbc9301504748abf4f Mon Sep 17 00:00:00 2001 From: cadmic Date: Wed, 28 Aug 2024 18:00:06 -0700 Subject: [ntsc-1.2] Match z_game_over.c, PAL 1.1 fixes (#2099) * Match z_game_over.c (PAL 1.1 change) * Fix previous matches that are actually PAL 1.1 changes * Add versions.h to global.h * Add versions.h to z_game_over.c too * And the others too * Fix awkward wording --- src/code/z_game_over.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/code') diff --git a/src/code/z_game_over.c b/src/code/z_game_over.c index ff2f2a57d..e6335307d 100644 --- a/src/code/z_game_over.c +++ b/src/code/z_game_over.c @@ -1,6 +1,7 @@ #include "z64game_over.h" #include "global.h" +#include "versions.h" void GameOver_Init(PlayState* play) { play->gameOverCtx.state = GAMEOVER_INACTIVE; @@ -61,7 +62,12 @@ void GameOver_Update(PlayState* play) { } } +#if OOT_VERSION < PAL_1_1 + gSaveContext.nayrusLoveTimer = 0; +#else gSaveContext.nayrusLoveTimer = 2000; +#endif + gSaveContext.save.info.playerData.naviTimer = 0; gSaveContext.seqId = (u8)NA_BGM_DISABLED; gSaveContext.natureAmbienceId = NATURE_ID_DISABLED; -- cgit v1.2.3