Rename worldY to worldZ

This commit is contained in:
Sebastian Mischke 2026-01-07 22:56:59 +01:00
parent 3cbe57bc32
commit b3e252a0c4
2 changed files with 7 additions and 7 deletions

View File

@ -45,10 +45,10 @@ class LegoRaceMap : public virtual LegoRaceActor {
float m_worldXOffset; // 0x14
// inversely scales the map in x direction (either convert world->screen space or to control the size)
float m_worldXScale; // 0x18
// 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_worldYScale; // 0x20
// likely a z-offset of the race map in world space
float m_worldZOffset; // 0x1c
// inversely scales the map in z direction (either convert world->screen space or to control the size)
float m_worldZScale; // 0x20
// 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)

View File

@ -64,12 +64,12 @@ void LegoRaceMap::ParseAction(char* p_extra)
token = strtok(NULL, g_parseExtraTokens);
if (token != NULL) {
m_worldYOffset = atof(token);
m_worldZOffset = atof(token);
}
token = strtok(NULL, g_parseExtraTokens);
if (token != NULL) {
m_worldYScale = atof(token);
m_worldZScale = 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_screenYScale;
short yPos = (GetWorldPosition()[2] - m_worldZOffset) / m_worldZScale * m_screenYScale;
m_stillPresenter->SetPosition(xPos + m_screenXOffset, m_screenYOffset - yPos);
}