Rename m_unk0x2c to m_screenXOffset

This commit is contained in:
Sebastian Mischke 2026-01-05 13:40:20 +01:00
parent d7c5d46fb3
commit d8a302eb53
2 changed files with 3 additions and 3 deletions

View File

@ -54,7 +54,7 @@ class LegoRaceMap : public virtual LegoRaceActor {
// scales the map in y direction (either convert world->screen space or to change the size)
float m_screenYScale; // 0x28
// likely an x-offset of the race map in screen space
float m_unk0x2c; // 0x2c
float m_screenXOffset; // 0x2c
// likely a y-offset of the race map in screen space
float m_unk0x30; // 0x30
};

View File

@ -84,7 +84,7 @@ void LegoRaceMap::ParseAction(char* p_extra)
token = strtok(NULL, g_parseExtraTokens);
if (token != NULL) {
m_unk0x2c = atof(token);
m_screenXOffset = atof(token);
}
token = strtok(NULL, g_parseExtraTokens);
@ -112,7 +112,7 @@ void LegoRaceMap::UpdateMapLocatorPosition()
short xPos = (GetWorldPosition()[0] - m_worldXOffset) / m_worldXScale * m_screenXScale;
short yPos = (GetWorldPosition()[2] - m_worldYOffset) / m_worldYScale * m_screenYScale;
m_stillPresenter->SetPosition(xPos + m_unk0x2c, m_unk0x30 - yPos);
m_stillPresenter->SetPosition(xPos + m_screenXOffset, m_unk0x30 - yPos);
}
}