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;
switch (((MxNotificationParam&) p_param).GetNotification()) {
case c_notificationEndAction:
MxPresenter* presenter;
presenter = (MxPresenter*) ((MxEndActionNotificationParam&) p_param).GetSender();
ret = 1;
case c_notificationEndAction: {
MxPresenter* presenter = (MxPresenter*) ((MxEndActionNotificationParam&) p_param).GetSender();
EndAction(presenter);
ret = 1;
break;
}
case c_notificationNewPresenter:
TickleManager()->RegisterClient(this, 100);
break;
@ -112,4 +112,4 @@ void SetIsWorldActive(MxBool p_isWorldActive)
if (!p_isWorldActive)
LegoOmni::GetInstance()->GetInputManager()->SetCamera(NULL);
g_isWorldActive = p_isWorldActive;
}
}