Clear unknown in InfocenterState (#1657)

This commit is contained in:
Fabian Neundorf
2025-07-26 00:58:49 +02:00
committed by GitHub
parent ddaf497cc4
commit 0442fadc0e
4 changed files with 109 additions and 89 deletions

View File

@@ -666,10 +666,10 @@ MxLong LegoNavController::Notify(MxParam& p_param)
InfocenterState* state = (InfocenterState*) GameState()->GetState("InfocenterState");
assert(state);
if (state != NULL && state->m_unk0x74 != 8 && currentWorld->Escape()) {
if (state != NULL && state->m_state != InfocenterState::e_exitQueried && currentWorld->Escape()) {
BackgroundAudioManager()->Stop();
TransitionManager()->StartTransition(MxTransitionManager::e_mosaic, 50, FALSE, FALSE);
state->m_unk0x74 = 8;
state->m_state = InfocenterState::e_exitQueried;
}
}
break;