This commit is contained in:
Christian Semmler 2024-02-04 17:34:36 -05:00
parent 469db12632
commit 409264e2d0
2 changed files with 6 additions and 5 deletions

View File

@ -26,12 +26,12 @@ class PoliceState : public LegoState {
MxResult VTable0x1c(LegoFile* p_legoFile) override; // vtable+0x1c
inline undefined4 GetUnknown0x0C() { return m_unk0x0c; }
inline void SetUnknown0x0C(undefined4 p_unk0x0c) { m_unk0x0c = p_unk0x0c; }
// SYNTHETIC: LEGO1 0x1005e920
// PoliceState::`scalar deleting destructor'
inline undefined4 GetUnknown0x0c() { return m_unk0x0c; }
inline void SetUnknown0x0c(undefined4 p_unk0x0c) { m_unk0x0c = p_unk0x0c; }
private:
undefined4 m_unk0x08; // 0x08
undefined4 m_unk0x0c; // 0x0c

View File

@ -112,11 +112,12 @@ MxLong Police::HandleKeyPress(LegoEventNotificationParam& p_param)
{
MxLong result = 0;
if (p_param.GetKey() == ' ' && m_policeState->GetUnknown0x0C() == 1) {
if (p_param.GetKey() == ' ' && m_policeState->GetUnknown0x0c() == 1) {
DeleteObjects(&m_atom, 500, 501);
m_policeState->SetUnknown0x0C(0);
m_policeState->SetUnknown0x0c(0);
return 1;
}
return 0;
}