mirror of
https://github.com/isledecomp/isle.git
synced 2025-10-24 00:44:21 +00:00
Clear unknowns in LegoControlManager (#1607)
This commit is contained in:
@@ -81,7 +81,7 @@ MxResult LegoWorld::Create(MxDSAction& p_dsAction)
|
||||
}
|
||||
|
||||
SetCurrentWorld(this);
|
||||
ControlManager()->FUN_10028df0(&m_controlPresenters);
|
||||
ControlManager()->SetPresenterList(&m_controlPresenters);
|
||||
}
|
||||
|
||||
SetIsWorldActive(TRUE);
|
||||
@@ -96,7 +96,7 @@ void LegoWorld::Destroy(MxBool p_fromDestructor)
|
||||
m_destroyed = TRUE;
|
||||
|
||||
if (CurrentWorld() == this) {
|
||||
ControlManager()->FUN_10028df0(NULL);
|
||||
ControlManager()->SetPresenterList(NULL);
|
||||
SetCurrentWorld(NULL);
|
||||
}
|
||||
|
||||
@@ -722,7 +722,7 @@ void LegoWorld::Enable(MxBool p_enable)
|
||||
}
|
||||
|
||||
SetCurrentWorld(this);
|
||||
ControlManager()->FUN_10028df0(&m_controlPresenters);
|
||||
ControlManager()->SetPresenterList(&m_controlPresenters);
|
||||
InputManager()->SetCamera(m_cameraController);
|
||||
|
||||
if (m_cameraController) {
|
||||
@@ -779,7 +779,7 @@ void LegoWorld::Enable(MxBool p_enable)
|
||||
}
|
||||
|
||||
if (CurrentWorld() && CurrentWorld() == this) {
|
||||
ControlManager()->FUN_10028df0(NULL);
|
||||
ControlManager()->SetPresenterList(NULL);
|
||||
Lego()->SetCurrentWorld(NULL);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user