Fix Infocenter -> Act2/Act3 switch (#286)

This commit is contained in:
Christian Semmler 2025-06-11 17:31:16 -07:00 committed by GitHub
parent 4374453cb7
commit 098e2a6894
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -273,7 +273,11 @@ MxLong Infocenter::Notify(MxParam& p_param)
else if (m_destLocation != 0) {
BackgroundAudioManager()->RaiseVolume();
GameState()->SwitchArea(m_destLocation);
m_destLocation = LegoGameState::e_undefined;
if (GameState()->m_currentArea != LegoGameState::e_act2main &&
GameState()->m_currentArea != LegoGameState::e_act3script) {
m_destLocation = LegoGameState::e_undefined;
}
}
break;
}