mirror of
https://github.com/isledecomp/isle.git
synced 2026-01-17 13:31:15 +00:00
Rename m_unk0x1c to m_worldYOffset
This commit is contained in:
parent
87b1a5126d
commit
968b030aba
@ -46,7 +46,7 @@ class LegoRaceMap : public virtual LegoRaceActor {
|
|||||||
// inversely scales the map in x direction (either convert world->screen space or to control the size)
|
// inversely scales the map in x direction (either convert world->screen space or to control the size)
|
||||||
float m_unk0x18; // 0x18
|
float m_unk0x18; // 0x18
|
||||||
// likely a y-offset of the race map in world space
|
// likely a y-offset of the race map in world space
|
||||||
float m_unk0x1c; // 0x1c
|
float m_worldYOffset; // 0x1c
|
||||||
// inversely scales the map in y direction (either convert world->screen space or to control the size)
|
// inversely scales the map in y direction (either convert world->screen space or to control the size)
|
||||||
float m_unk0x20; // 0x20
|
float m_unk0x20; // 0x20
|
||||||
// scales the map in x direction (either convert world->screen space or to change the size)
|
// scales the map in x direction (either convert world->screen space or to change the size)
|
||||||
|
|||||||
@ -64,7 +64,7 @@ void LegoRaceMap::ParseAction(char* p_extra)
|
|||||||
|
|
||||||
token = strtok(NULL, g_parseExtraTokens);
|
token = strtok(NULL, g_parseExtraTokens);
|
||||||
if (token != NULL) {
|
if (token != NULL) {
|
||||||
m_unk0x1c = atof(token);
|
m_worldYOffset = atof(token);
|
||||||
}
|
}
|
||||||
|
|
||||||
token = strtok(NULL, g_parseExtraTokens);
|
token = strtok(NULL, g_parseExtraTokens);
|
||||||
@ -110,7 +110,7 @@ void LegoRaceMap::UpdateMapLocatorPosition()
|
|||||||
{
|
{
|
||||||
if (m_mapEnabled) {
|
if (m_mapEnabled) {
|
||||||
short xPos = (GetWorldPosition()[0] - m_worldXOffset) / m_unk0x18 * m_unk0x24;
|
short xPos = (GetWorldPosition()[0] - m_worldXOffset) / m_unk0x18 * m_unk0x24;
|
||||||
short yPos = (GetWorldPosition()[2] - m_unk0x1c) / m_unk0x20 * m_unk0x28;
|
short yPos = (GetWorldPosition()[2] - m_worldYOffset) / m_unk0x20 * m_unk0x28;
|
||||||
|
|
||||||
m_stillPresenter->SetPosition(xPos + m_unk0x2c, m_unk0x30 - yPos);
|
m_stillPresenter->SetPosition(xPos + m_unk0x2c, m_unk0x30 - yPos);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user