From 68b0ac0d16a9d0bdb741c1d77ac950e184ad5c7a Mon Sep 17 00:00:00 2001 From: Sebastian Mischke Date: Mon, 5 Jan 2026 13:39:10 +0100 Subject: [PATCH] Rename m_unk0x24 to m_screenXScale --- LEGO1/lego/legoomni/include/legoracemap.h | 2 +- LEGO1/lego/legoomni/src/race/legoracemap.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/LEGO1/lego/legoomni/include/legoracemap.h b/LEGO1/lego/legoomni/include/legoracemap.h index 97420a4b..b522d1dc 100644 --- a/LEGO1/lego/legoomni/include/legoracemap.h +++ b/LEGO1/lego/legoomni/include/legoracemap.h @@ -50,7 +50,7 @@ class LegoRaceMap : public virtual LegoRaceActor { // inversely scales the map in y direction (either convert world->screen space or to control the size) float m_worldYScale; // 0x20 // scales the map in x direction (either convert world->screen space or to change the size) - float m_unk0x24; // 0x24 + float m_screenXScale; // 0x24 // scales the map in y direction (either convert world->screen space or to change the size) float m_unk0x28; // 0x28 // likely an x-offset of the race map in screen space diff --git a/LEGO1/lego/legoomni/src/race/legoracemap.cpp b/LEGO1/lego/legoomni/src/race/legoracemap.cpp index b03641cf..500c9b37 100644 --- a/LEGO1/lego/legoomni/src/race/legoracemap.cpp +++ b/LEGO1/lego/legoomni/src/race/legoracemap.cpp @@ -74,7 +74,7 @@ void LegoRaceMap::ParseAction(char* p_extra) token = strtok(NULL, g_parseExtraTokens); if (token != NULL) { - m_unk0x24 = atof(token); + m_screenXScale = atof(token); } token = strtok(NULL, g_parseExtraTokens); @@ -109,7 +109,7 @@ void LegoRaceMap::ParseAction(char* p_extra) void LegoRaceMap::UpdateMapLocatorPosition() { if (m_mapEnabled) { - short xPos = (GetWorldPosition()[0] - m_worldXOffset) / m_worldXScale * m_unk0x24; + short xPos = (GetWorldPosition()[0] - m_worldXOffset) / m_worldXScale * m_screenXScale; short yPos = (GetWorldPosition()[2] - m_worldYOffset) / m_worldYScale * m_unk0x28; m_stillPresenter->SetPosition(xPos + m_unk0x2c, m_unk0x30 - yPos);