From 7a2824130b5a4ec8b3b6ee2750186aecc06b47f9 Mon Sep 17 00:00:00 2001 From: Misha <106913236+MishaProductions@users.noreply.github.com> Date: Sat, 16 Dec 2023 12:29:36 -0500 Subject: [PATCH] fixes --- LEGO1/lego3dmanager.h | 4 ++-- LEGO1/mxomni.cpp | 3 +-- LEGO1/mxstreamer.cpp | 7 ++----- 3 files changed, 5 insertions(+), 9 deletions(-) diff --git a/LEGO1/lego3dmanager.h b/LEGO1/lego3dmanager.h index 68583e28..aed0ae1e 100644 --- a/LEGO1/lego3dmanager.h +++ b/LEGO1/lego3dmanager.h @@ -8,8 +8,8 @@ class Lego3DManager { inline Lego3DView* GetLego3DView() { return this->m_3dView; } private: - int m_unk0x00; - int m_unk0x04; + undefined4 m_unk0x00; + undefined4 m_unk0x04; Lego3DView* m_3dView; // 0x08 }; diff --git a/LEGO1/mxomni.cpp b/LEGO1/mxomni.cpp index 00b5651a..5c489215 100644 --- a/LEGO1/mxomni.cpp +++ b/LEGO1/mxomni.cpp @@ -413,8 +413,7 @@ MxLong MxOmni::HandleActionEnd(MxParam& p_param) delete ((MxEndActionNotificationParam&) p_param).GetSender(); } - if (((MxEndActionNotificationParam&) p_param).GetAction()) - { + if (((MxEndActionNotificationParam&) p_param).GetAction()) { delete ((MxEndActionNotificationParam&) p_param).GetAction(); } return 1; diff --git a/LEGO1/mxstreamer.cpp b/LEGO1/mxstreamer.cpp index 5614f431..b0526e92 100644 --- a/LEGO1/mxstreamer.cpp +++ b/LEGO1/mxstreamer.cpp @@ -148,18 +148,15 @@ MxResult MxStreamer::DeleteObject(MxDSAction* p_dsAction) { MxDSAction tempAction; - if (p_dsAction == NULL) - { + if (p_dsAction == NULL) { tempAction.SetUnknown24(-2); } - else - { + else { tempAction.SetObjectId(p_dsAction->GetObjectId()); tempAction.SetAtomId(p_dsAction->GetAtomId()); tempAction.SetUnknown24(p_dsAction->GetUnknown24()); } - // TODO: remove action from list return -1; }