Cleared unknown for flashing leds in Hospital

This commit is contained in:
Fabian Neundorf 2025-06-07 22:51:12 +02:00
parent f993a8886c
commit c092a49424
2 changed files with 4 additions and 4 deletions

View File

@ -101,7 +101,7 @@ class Hospital : public LegoWorld {
HospitalScript::Script m_currentAction; // 0x10c
MxStillPresenter* m_copLedBitmap; // 0x110
MxStillPresenter* m_pizzaLedBitmap; // 0x114
undefined m_unk0x118; // 0x118
MxBool m_flashingLeds; // 0x118
MxLong m_copLedAnimTimer; // 0x11c
MxLong m_pizzaLedAnimTimer; // 0x120
MxLong m_time; // 0x124

View File

@ -43,7 +43,7 @@ Hospital::Hospital()
m_currentAction = HospitalScript::c__StartUp;
m_copLedBitmap = NULL;
m_pizzaLedBitmap = NULL;
m_unk0x118 = 0;
m_flashingLeds = 0;
m_copLedAnimTimer = 0;
m_pizzaLedAnimTimer = 0;
m_unk0x128 = 0;
@ -250,7 +250,7 @@ MxLong Hospital::HandleEndAction(MxEndActionNotificationParam& p_param)
m_currentAction = HospitalScript::c_hho006cl_RunAnim;
m_unk0x108 = 1;
m_unk0x118 = 1;
m_flashingLeds = 1;
g_unk0x100f7918 = 0;
break;
case 6:
@ -643,7 +643,7 @@ MxResult Hospital::Tickle()
MxLong time = Timer()->GetTime();
if (m_unk0x118 != 0) {
if (m_flashingLeds != 0) {
if (time - m_copLedAnimTimer > 300) {
m_copLedAnimTimer = time;
g_copLedEnabled = !g_copLedEnabled;