mirror of
https://github.com/isledecomp/isle.git
synced 2026-01-26 17:51:16 +00:00
Match LegoWorld::Notify to 100%
This commit is contained in:
parent
8dfd59004e
commit
5d2cd79fb1
@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user