From 5d2cd79fb19f3f9882075ef11cd25653438d6d35 Mon Sep 17 00:00:00 2001 From: Christian Semmler Date: Wed, 25 Oct 2023 12:15:47 -0400 Subject: [PATCH] Match LegoWorld::Notify to 100% --- LEGO1/legoworld.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/LEGO1/legoworld.cpp b/LEGO1/legoworld.cpp index de0c3158..e4a2e6b4 100644 --- a/LEGO1/legoworld.cpp +++ b/LEGO1/legoworld.cpp @@ -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; -} \ No newline at end of file +}