mirror of
https://github.com/isledecomp/isle.git
synced 2026-01-11 18:51:16 +00:00
Rename m_unk0x30 to m_screenYOffset
This commit is contained in:
parent
d8a302eb53
commit
67a2971a0c
@ -56,7 +56,7 @@ class LegoRaceMap : public virtual LegoRaceActor {
|
|||||||
// likely an x-offset of the race map in screen space
|
// likely an x-offset of the race map in screen space
|
||||||
float m_screenXOffset; // 0x2c
|
float m_screenXOffset; // 0x2c
|
||||||
// likely a y-offset of the race map in screen space
|
// likely a y-offset of the race map in screen space
|
||||||
float m_unk0x30; // 0x30
|
float m_screenYOffset; // 0x30
|
||||||
};
|
};
|
||||||
|
|
||||||
// GLOBAL: LEGO1 0x100d8848
|
// GLOBAL: LEGO1 0x100d8848
|
||||||
|
|||||||
@ -89,7 +89,7 @@ void LegoRaceMap::ParseAction(char* p_extra)
|
|||||||
|
|
||||||
token = strtok(NULL, g_parseExtraTokens);
|
token = strtok(NULL, g_parseExtraTokens);
|
||||||
if (token != NULL) {
|
if (token != NULL) {
|
||||||
m_unk0x30 = atof(token);
|
m_screenYOffset = atof(token);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -112,7 +112,7 @@ void LegoRaceMap::UpdateMapLocatorPosition()
|
|||||||
short xPos = (GetWorldPosition()[0] - m_worldXOffset) / m_worldXScale * m_screenXScale;
|
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_worldYOffset) / m_worldYScale * m_screenYScale;
|
||||||
|
|
||||||
m_stillPresenter->SetPosition(xPos + m_screenXOffset, m_unk0x30 - yPos);
|
m_stillPresenter->SetPosition(xPos + m_screenXOffset, m_screenYOffset - yPos);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user