mirror of
https://github.com/isledecomp/isle.git
synced 2026-01-11 18:51:16 +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'
|
// LegoRaceMap::`scalar deleting destructor'
|
||||||
|
|
||||||
private:
|
private:
|
||||||
MxBool m_unk0x08; // 0x08
|
MxBool m_mapEnabled; // 0x08
|
||||||
MxStillPresenter* m_stillPresenter; // 0x0c
|
MxStillPresenter* m_stillPresenter; // 0x0c
|
||||||
|
|
||||||
// variable name verified by BETA10 0x100ca82b
|
// variable name verified by BETA10 0x100ca82b
|
||||||
|
|||||||
@ -15,7 +15,7 @@ DECOMP_SIZE_ASSERT(LegoRaceMap, 0x1b4)
|
|||||||
// FUNCTION: BETA10 0x100ca2c0
|
// FUNCTION: BETA10 0x100ca2c0
|
||||||
LegoRaceMap::LegoRaceMap()
|
LegoRaceMap::LegoRaceMap()
|
||||||
{
|
{
|
||||||
m_unk0x08 = FALSE;
|
m_mapEnabled = FALSE;
|
||||||
m_stillPresenter = NULL;
|
m_stillPresenter = NULL;
|
||||||
m_Map_Ctl = 0;
|
m_Map_Ctl = 0;
|
||||||
ControlManager()->Register(this);
|
ControlManager()->Register(this);
|
||||||
@ -108,7 +108,7 @@ void LegoRaceMap::ParseAction(char* p_extra)
|
|||||||
// FUNCTION: BETA10 0x100ca849
|
// FUNCTION: BETA10 0x100ca849
|
||||||
void LegoRaceMap::UpdateMapLocatorPosition()
|
void LegoRaceMap::UpdateMapLocatorPosition()
|
||||||
{
|
{
|
||||||
if (m_unk0x08) {
|
if (m_mapEnabled) {
|
||||||
short xPos = (GetWorldPosition()[0] - m_unk0x14) / m_unk0x18 * m_unk0x24;
|
short xPos = (GetWorldPosition()[0] - m_unk0x14) / m_unk0x18 * m_unk0x24;
|
||||||
short yPos = (GetWorldPosition()[2] - m_unk0x1c) / m_unk0x20 * m_unk0x28;
|
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) {
|
m_Map_Ctl->GetAction()->GetObjectId() == ((LegoControlManagerNotificationParam&) p_param).m_clickedObjectId) {
|
||||||
|
|
||||||
if (((LegoControlManagerNotificationParam&) p_param).m_enabledChild == 1) {
|
if (((LegoControlManagerNotificationParam&) p_param).m_enabledChild == 1) {
|
||||||
m_unk0x08 = TRUE;
|
m_mapEnabled = TRUE;
|
||||||
UpdateMapLocatorPosition();
|
UpdateMapLocatorPosition();
|
||||||
m_stillPresenter->Enable(TRUE);
|
m_stillPresenter->Enable(TRUE);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
m_unk0x08 = FALSE;
|
m_mapEnabled = FALSE;
|
||||||
m_stillPresenter->Enable(FALSE);
|
m_stillPresenter->Enable(FALSE);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user