From 24dec597a494c50c1bf8934d6b869e4e8a495c62 Mon Sep 17 00:00:00 2001 From: Sebastian Mischke Date: Mon, 5 Jan 2026 13:35:25 +0100 Subject: [PATCH] Rename m_unk0x08 to m_mapEnabled --- LEGO1/lego/legoomni/include/legoracemap.h | 2 +- LEGO1/lego/legoomni/src/race/legoracemap.cpp | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/LEGO1/lego/legoomni/include/legoracemap.h b/LEGO1/lego/legoomni/include/legoracemap.h index 99c27fe9..6be4402b 100644 --- a/LEGO1/lego/legoomni/include/legoracemap.h +++ b/LEGO1/lego/legoomni/include/legoracemap.h @@ -35,7 +35,7 @@ class LegoRaceMap : public virtual LegoRaceActor { // LegoRaceMap::`scalar deleting destructor' private: - MxBool m_unk0x08; // 0x08 + MxBool m_mapEnabled; // 0x08 MxStillPresenter* m_stillPresenter; // 0x0c // variable name verified by BETA10 0x100ca82b diff --git a/LEGO1/lego/legoomni/src/race/legoracemap.cpp b/LEGO1/lego/legoomni/src/race/legoracemap.cpp index 2660a831..8e902b8e 100644 --- a/LEGO1/lego/legoomni/src/race/legoracemap.cpp +++ b/LEGO1/lego/legoomni/src/race/legoracemap.cpp @@ -15,7 +15,7 @@ DECOMP_SIZE_ASSERT(LegoRaceMap, 0x1b4) // FUNCTION: BETA10 0x100ca2c0 LegoRaceMap::LegoRaceMap() { - m_unk0x08 = FALSE; + m_mapEnabled = FALSE; m_stillPresenter = NULL; m_Map_Ctl = 0; ControlManager()->Register(this); @@ -108,7 +108,7 @@ void LegoRaceMap::ParseAction(char* p_extra) // FUNCTION: BETA10 0x100ca849 void LegoRaceMap::UpdateMapLocatorPosition() { - if (m_unk0x08) { + if (m_mapEnabled) { short xPos = (GetWorldPosition()[0] - m_unk0x14) / m_unk0x18 * m_unk0x24; short yPos = (GetWorldPosition()[2] - m_unk0x1c) / m_unk0x20 * m_unk0x28; @@ -130,12 +130,12 @@ MxLong LegoRaceMap::Notify(MxParam& p_param) m_Map_Ctl->GetAction()->GetObjectId() == ((LegoControlManagerNotificationParam&) p_param).m_clickedObjectId) { if (((LegoControlManagerNotificationParam&) p_param).m_enabledChild == 1) { - m_unk0x08 = TRUE; + m_mapEnabled = TRUE; UpdateMapLocatorPosition(); m_stillPresenter->Enable(TRUE); } else { - m_unk0x08 = FALSE; + m_mapEnabled = FALSE; m_stillPresenter->Enable(FALSE); } }