From deb70d488284ed10e696607a1854b825bc25630f Mon Sep 17 00:00:00 2001 From: Sebastian Mischke Date: Mon, 5 Jan 2026 13:38:34 +0100 Subject: [PATCH] Rename m_unk0x20 to m_worldYScale --- 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 c9d4c4aa..97420a4b 100644 --- a/LEGO1/lego/legoomni/include/legoracemap.h +++ b/LEGO1/lego/legoomni/include/legoracemap.h @@ -48,7 +48,7 @@ class LegoRaceMap : public virtual LegoRaceActor { // likely a y-offset of the race map in world space float m_worldYOffset; // 0x1c // inversely scales the map in y direction (either convert world->screen space or to control the size) - float m_unk0x20; // 0x20 + float m_worldYScale; // 0x20 // scales the map in x direction (either convert world->screen space or to change the size) float m_unk0x24; // 0x24 // scales the map in y direction (either convert world->screen space or to change the size) diff --git a/LEGO1/lego/legoomni/src/race/legoracemap.cpp b/LEGO1/lego/legoomni/src/race/legoracemap.cpp index 06480b95..b03641cf 100644 --- a/LEGO1/lego/legoomni/src/race/legoracemap.cpp +++ b/LEGO1/lego/legoomni/src/race/legoracemap.cpp @@ -69,7 +69,7 @@ void LegoRaceMap::ParseAction(char* p_extra) token = strtok(NULL, g_parseExtraTokens); if (token != NULL) { - m_unk0x20 = atof(token); + m_worldYScale = atof(token); } token = strtok(NULL, g_parseExtraTokens); @@ -110,7 +110,7 @@ void LegoRaceMap::UpdateMapLocatorPosition() { if (m_mapEnabled) { short xPos = (GetWorldPosition()[0] - m_worldXOffset) / m_worldXScale * m_unk0x24; - short yPos = (GetWorldPosition()[2] - m_worldYOffset) / m_unk0x20 * m_unk0x28; + short yPos = (GetWorldPosition()[2] - m_worldYOffset) / m_worldYScale * m_unk0x28; m_stillPresenter->SetPosition(xPos + m_unk0x2c, m_unk0x30 - yPos); }