This commit is contained in:
Christian Semmler 2024-05-04 09:58:32 -04:00
parent f118ea9bc2
commit 2d1b01ef3c

View File

@ -77,8 +77,7 @@ void Helicopter::VTable0xe4()
if (GameState()->GetCurrentAct() == LegoGameState::e_act1) { if (GameState()->GetCurrentAct() == LegoGameState::e_act1) {
GameState()->SetCurrentArea(LegoGameState::e_copter); GameState()->SetCurrentArea(LegoGameState::e_copter);
if (CurrentActor()) { if (CurrentActor() && CurrentActor()->IsA("IslePathActor")) {
if (CurrentActor()->IsA("IslePathActor")) {
CurrentActor()->SpawnPlayer( CurrentActor()->SpawnPlayer(
LegoGameState::e_unk55, LegoGameState::e_unk55,
TRUE, TRUE,
@ -86,7 +85,6 @@ void Helicopter::VTable0xe4()
); );
} }
} }
}
m_state->SetUnknown8(0); m_state->SetUnknown8(0);
RemoveFromCurrentWorld(m_script, IsleScript::c_HelicopterDashboard_Bitmap); RemoveFromCurrentWorld(m_script, IsleScript::c_HelicopterDashboard_Bitmap);