mirror of
https://github.com/isledecomp/isle.git
synced 2025-10-26 09:54:18 +00:00
Clear unknowns in LegoAct2State (#1671)
This commit is contained in:
@@ -516,7 +516,7 @@ void Infocenter::ReadyWorld()
|
||||
LegoAct2State* state = (LegoAct2State*) GameState()->GetState("LegoAct2State");
|
||||
GameState()->FindLoadedAct();
|
||||
|
||||
if (state && state->GetUnknown0x08() == 0x68) {
|
||||
if (state && state->GetState() == LegoAct2State::c_badEnding) {
|
||||
bg->Enable(TRUE);
|
||||
PlayCutscene(e_badEndMovie, TRUE);
|
||||
m_infocenterState->m_state = InfocenterState::e_playCutscene;
|
||||
|
||||
@@ -127,7 +127,7 @@ MxResult LegoAct2::Create(MxDSAction& p_dsAction)
|
||||
}
|
||||
|
||||
m_gameState = state;
|
||||
m_gameState->m_unk0x08 = 0;
|
||||
m_gameState->m_state = 0;
|
||||
|
||||
switch (GameState()->GetLoadedAct()) {
|
||||
case LegoGameState::e_act2:
|
||||
@@ -933,7 +933,7 @@ MxResult LegoAct2::BadEnding()
|
||||
LegoPathActor* actor = m_unk0x1138;
|
||||
actor->SetActorState(LegoPathActor::c_disabled);
|
||||
|
||||
m_gameState->SetUnknown0x08(104);
|
||||
m_gameState->SetState(LegoAct2State::c_badEnding);
|
||||
m_destLocation = LegoGameState::e_infomain;
|
||||
TransitionManager()->StartTransition(MxTransitionManager::e_mosaic, 50, FALSE, FALSE);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user