From 318e6089a0f054c6e4b462c99eface8cf24c7efc Mon Sep 17 00:00:00 2001 From: Caladius Date: Thu, 7 Mar 2024 14:15:17 -0500 Subject: [PATCH] Fix Entrances --- soh/soh/Enhancements/timesplits/TimeSplits.cpp | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/soh/soh/Enhancements/timesplits/TimeSplits.cpp b/soh/soh/Enhancements/timesplits/TimeSplits.cpp index 0374bf0c0..9115bbc4e 100644 --- a/soh/soh/Enhancements/timesplits/TimeSplits.cpp +++ b/soh/soh/Enhancements/timesplits/TimeSplits.cpp @@ -344,10 +344,13 @@ void TimeSplitSplitsHandlerS(uint32_t itemID) { void TimeSplitSceneSplitHandler(uint32_t entrance) { uint32_t loopCounter = 0; + if (entrance == ESCAPE_KOKIRI_FOREST && gSaveContext.cutsceneIndex != 0xfff0) { + return; + } + if (entrance != ESCAPE_LOST_WOODS && entrance != ESCAPE_KOKIRI_FOREST) { + entrance += 667; + } for (auto& str : splitItem) { - if (entrance == ESCAPE_KOKIRI_FOREST && gSaveContext.cutsceneIndex != 0xfff0) { - return; - } if (entrance == splitItem[loopCounter]) { if (splitStatus[loopCounter] == 2) { splitTime[loopCounter] = GAMEPLAYSTAT_TOTAL_TIME; @@ -364,7 +367,7 @@ void TimeSplitSceneSplitHandler(uint32_t entrance) { } } loopCounter++; - } + } } void TimeSplitSplitsHandler(GetItemEntry itemEntry) {