Match LegoWorld::Notify to 100%

This commit is contained in:
Christian Semmler 2023-10-25 12:15:47 -04:00
parent 8dfd59004e
commit 5d2cd79fb1

View File

@ -39,12 +39,12 @@ MxLong LegoWorld::Notify(MxParam& p_param)
{ {
MxLong ret = 0; MxLong ret = 0;
switch (((MxNotificationParam&) p_param).GetNotification()) { switch (((MxNotificationParam&) p_param).GetNotification()) {
case c_notificationEndAction: case c_notificationEndAction: {
MxPresenter* presenter; MxPresenter* presenter = (MxPresenter*) ((MxEndActionNotificationParam&) p_param).GetSender();
presenter = (MxPresenter*) ((MxEndActionNotificationParam&) p_param).GetSender();
ret = 1;
EndAction(presenter); EndAction(presenter);
ret = 1;
break; break;
}
case c_notificationNewPresenter: case c_notificationNewPresenter:
TickleManager()->RegisterClient(this, 100); TickleManager()->RegisterClient(this, 100);
break; break;
@ -112,4 +112,4 @@ void SetIsWorldActive(MxBool p_isWorldActive)
if (!p_isWorldActive) if (!p_isWorldActive)
LegoOmni::GetInstance()->GetInputManager()->SetCamera(NULL); LegoOmni::GetInstance()->GetInputManager()->SetCamera(NULL);
g_isWorldActive = p_isWorldActive; g_isWorldActive = p_isWorldActive;
} }