code style

This commit is contained in:
Christian Semmler 2024-03-15 19:10:19 -04:00
parent 43e753a06f
commit 7c2a647655
2 changed files with 19 additions and 19 deletions

View File

@ -55,8 +55,8 @@ class Hospital : public LegoWorld {
MxStillPresenter* m_unk0x110; // 0x110 MxStillPresenter* m_unk0x110; // 0x110
MxStillPresenter* m_unk0x114; // 0x114 MxStillPresenter* m_unk0x114; // 0x114
undefined m_unk0x118; // 0x118 undefined m_unk0x118; // 0x118
undefined4 m_unk0x11c; // 0x11c MxLong m_unk0x11c; // 0x11c
undefined4 m_unk0x120; // 0x120 MxLong m_unk0x120; // 0x120
undefined m_unk0x124[4]; // 0x124 undefined m_unk0x124[4]; // 0x124
undefined m_unk0x128; // 0x128 undefined m_unk0x128; // 0x128
}; };

View File

@ -181,27 +181,27 @@ MxResult Hospital::Tickle()
LegoWorld::Tickle(); LegoWorld::Tickle();
return SUCCESS; return SUCCESS;
} }
else {
if (g_unk0x100f7918 != 0) { if (g_unk0x100f7918 != 0) {
g_unk0x100f7918 -= 1; g_unk0x100f7918 -= 1;
}
MxLong time = Timer()->GetTime();
if (m_unk0x118 != 0) {
if (time - m_unk0x11c > 300) {
m_unk0x11c = time;
g_unk0x100f791c = !g_unk0x100f791c;
m_unk0x110->Enable(g_unk0x100f791c);
} }
MxLong time = Timer()->GetTime(); if (time - m_unk0x120 > 200) {
m_unk0x120 = time;
if (m_unk0x118 != 0) { g_unk0x100f7920 = !g_unk0x100f7920;
if (300 < (MxLong) (time - m_unk0x11c)) { m_unk0x114->Enable(g_unk0x100f7920);
m_unk0x11c = time;
g_unk0x100f791c = !g_unk0x100f791c;
m_unk0x110->Enable(g_unk0x100f791c);
}
if (200 < (MxLong) (time - m_unk0x120)) {
m_unk0x120 = time;
g_unk0x100f7920 = !g_unk0x100f7920;
m_unk0x114->Enable(g_unk0x100f7920);
}
} }
} }
return SUCCESS; return SUCCESS;
} }