mirror of
https://github.com/isledecomp/isle.git
synced 2026-01-11 02:31:17 +00:00
Rename m_unk0x14 to m_worldXOffset
This commit is contained in:
parent
24dec597a4
commit
87b1a5126d
@ -42,7 +42,7 @@ class LegoRaceMap : public virtual LegoRaceActor {
|
||||
MxControlPresenter* m_Map_Ctl; // 0x10
|
||||
|
||||
// likely an x-offset of the race map in world space
|
||||
float m_unk0x14; // 0x14
|
||||
float m_worldXOffset; // 0x14
|
||||
// inversely scales the map in x direction (either convert world->screen space or to control the size)
|
||||
float m_unk0x18; // 0x18
|
||||
// likely a y-offset of the race map in world space
|
||||
|
||||
@ -54,7 +54,7 @@ void LegoRaceMap::ParseAction(char* p_extra)
|
||||
if (KeyValueStringParse(value, g_mapGeometry, p_extra)) {
|
||||
char* token = strtok(value, g_parseExtraTokens);
|
||||
if (token != NULL) {
|
||||
m_unk0x14 = atof(token);
|
||||
m_worldXOffset = atof(token);
|
||||
}
|
||||
|
||||
token = strtok(NULL, g_parseExtraTokens);
|
||||
@ -109,7 +109,7 @@ void LegoRaceMap::ParseAction(char* p_extra)
|
||||
void LegoRaceMap::UpdateMapLocatorPosition()
|
||||
{
|
||||
if (m_mapEnabled) {
|
||||
short xPos = (GetWorldPosition()[0] - m_unk0x14) / m_unk0x18 * m_unk0x24;
|
||||
short xPos = (GetWorldPosition()[0] - m_worldXOffset) / m_unk0x18 * m_unk0x24;
|
||||
short yPos = (GetWorldPosition()[2] - m_unk0x1c) / m_unk0x20 * m_unk0x28;
|
||||
|
||||
m_stillPresenter->SetPosition(xPos + m_unk0x2c, m_unk0x30 - yPos);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user