Clear unknowns in LegoControlManager (#1607)

This commit is contained in:
Fabian Neundorf
2025-07-06 03:23:00 +02:00
committed by GitHub
parent d3aecadb07
commit 8ffe7b776a
6 changed files with 87 additions and 81 deletions

View File

@@ -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);
}