From 4419007355945bc1700155ec3e5cdc46c6a40194 Mon Sep 17 00:00:00 2001 From: Christian Semmler Date: Thu, 16 May 2024 15:36:52 -0400 Subject: [PATCH] Replace magic values with script actions --- LEGO1/lego/legoomni/src/actors/helicopter.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/LEGO1/lego/legoomni/src/actors/helicopter.cpp b/LEGO1/lego/legoomni/src/actors/helicopter.cpp index ee3b6177..0bc064b5 100644 --- a/LEGO1/lego/legoomni/src/actors/helicopter.cpp +++ b/LEGO1/lego/legoomni/src/actors/helicopter.cpp @@ -144,7 +144,7 @@ MxU32 Helicopter::VTable0xcc() } VTable0xe0(); - InvokeAction(Extra::ActionType::e_start, m_script, 0x15, NULL); + InvokeAction(Extra::ActionType::e_start, m_script, IsleScript::c_HelicopterDashboard, NULL); GetCurrentAction().SetObjectId(-1); ControlManager()->Register(this); return 1; @@ -191,7 +191,7 @@ MxU32 Helicopter::VTable0xd4(LegoControlManagerEvent& p_param) state->SetUnknown18(4); m_state->SetUnknown8(1); m_world->RemovePathActor(this); - InvokeAction(Extra::ActionType::e_start, script, 0x20, NULL); + InvokeAction(Extra::ActionType::e_start, script, IsleScript::c_HelicopterTakeOff_Anim, NULL); SetState(0); } ret = 1; @@ -204,7 +204,7 @@ MxU32 Helicopter::VTable0xd4(LegoControlManagerEvent& p_param) if (m_state->GetUnkown8() == 2) { m_state->SetUnknown8(3); m_world->RemovePathActor(this); - InvokeAction(Extra::ActionType::e_start, script, 0x21, NULL); + InvokeAction(Extra::ActionType::e_start, script, IsleScript::c_HelicopterLand_Anim, NULL); SetState(4); } ret = 1;