mirror of
https://github.com/isledecomp/isle.git
synced 2026-01-11 02:31:17 +00:00
Rename m_unk0x08 to m_mapEnabled
This commit is contained in:
parent
4d3dbad040
commit
24dec597a4
@ -35,7 +35,7 @@ class LegoRaceMap : public virtual LegoRaceActor {
|
||||
// LegoRaceMap::`scalar deleting destructor'
|
||||
|
||||
private:
|
||||
MxBool m_unk0x08; // 0x08
|
||||
MxBool m_mapEnabled; // 0x08
|
||||
MxStillPresenter* m_stillPresenter; // 0x0c
|
||||
|
||||
// variable name verified by BETA10 0x100ca82b
|
||||
|
||||
@ -15,7 +15,7 @@ DECOMP_SIZE_ASSERT(LegoRaceMap, 0x1b4)
|
||||
// FUNCTION: BETA10 0x100ca2c0
|
||||
LegoRaceMap::LegoRaceMap()
|
||||
{
|
||||
m_unk0x08 = FALSE;
|
||||
m_mapEnabled = FALSE;
|
||||
m_stillPresenter = NULL;
|
||||
m_Map_Ctl = 0;
|
||||
ControlManager()->Register(this);
|
||||
@ -108,7 +108,7 @@ void LegoRaceMap::ParseAction(char* p_extra)
|
||||
// FUNCTION: BETA10 0x100ca849
|
||||
void LegoRaceMap::UpdateMapLocatorPosition()
|
||||
{
|
||||
if (m_unk0x08) {
|
||||
if (m_mapEnabled) {
|
||||
short xPos = (GetWorldPosition()[0] - m_unk0x14) / m_unk0x18 * m_unk0x24;
|
||||
short yPos = (GetWorldPosition()[2] - m_unk0x1c) / m_unk0x20 * m_unk0x28;
|
||||
|
||||
@ -130,12 +130,12 @@ MxLong LegoRaceMap::Notify(MxParam& p_param)
|
||||
m_Map_Ctl->GetAction()->GetObjectId() == ((LegoControlManagerNotificationParam&) p_param).m_clickedObjectId) {
|
||||
|
||||
if (((LegoControlManagerNotificationParam&) p_param).m_enabledChild == 1) {
|
||||
m_unk0x08 = TRUE;
|
||||
m_mapEnabled = TRUE;
|
||||
UpdateMapLocatorPosition();
|
||||
m_stillPresenter->Enable(TRUE);
|
||||
}
|
||||
else {
|
||||
m_unk0x08 = FALSE;
|
||||
m_mapEnabled = FALSE;
|
||||
m_stillPresenter->Enable(FALSE);
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user