From d7c5d46fb304b595173ec27c3ddb450d03b555d7 Mon Sep 17 00:00:00 2001 From: Sebastian Mischke Date: Mon, 5 Jan 2026 13:39:41 +0100 Subject: [PATCH] Rename m_unk0x28 to m_screenYScale --- 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 b522d1dc..145e3b5a 100644 --- a/LEGO1/lego/legoomni/include/legoracemap.h +++ b/LEGO1/lego/legoomni/include/legoracemap.h @@ -52,7 +52,7 @@ class LegoRaceMap : public virtual LegoRaceActor { // scales the map in x direction (either convert world->screen space or to change the size) float m_screenXScale; // 0x24 // scales the map in y direction (either convert world->screen space or to change the size) - float m_unk0x28; // 0x28 + float m_screenYScale; // 0x28 // likely an x-offset of the race map in screen space float m_unk0x2c; // 0x2c // likely a y-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 500c9b37..a6e96526 100644 --- a/LEGO1/lego/legoomni/src/race/legoracemap.cpp +++ b/LEGO1/lego/legoomni/src/race/legoracemap.cpp @@ -79,7 +79,7 @@ void LegoRaceMap::ParseAction(char* p_extra) token = strtok(NULL, g_parseExtraTokens); if (token != NULL) { - m_unk0x28 = atof(token); + m_screenYScale = 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_screenXScale; - short yPos = (GetWorldPosition()[2] - m_worldYOffset) / m_worldYScale * m_unk0x28; + short yPos = (GetWorldPosition()[2] - m_worldYOffset) / m_worldYScale * m_screenYScale; m_stillPresenter->SetPosition(xPos + m_unk0x2c, m_unk0x30 - yPos); }