From 859bf5d1e6f46115172a34cba5cd0d6f1bd7a51a Mon Sep 17 00:00:00 2001 From: Christian Semmler Date: Sun, 22 Dec 2024 13:15:33 -0700 Subject: [PATCH] Fix naming --- LEGO1/lego/legoomni/src/video/legoanimpresenter.cpp | 10 +++++----- .../lego/legoomni/src/video/legohideanimpresenter.cpp | 8 ++++---- LEGO1/lego/legoomni/src/worlds/registrationbook.cpp | 8 ++++---- LEGO1/omni/src/main/mxomni.cpp | 4 ++-- LEGO1/omni/src/video/mxsmkpresenter.cpp | 6 +++--- 5 files changed, 18 insertions(+), 18 deletions(-) diff --git a/LEGO1/lego/legoomni/src/video/legoanimpresenter.cpp b/LEGO1/lego/legoomni/src/video/legoanimpresenter.cpp index c827043f..05fbb6ec 100644 --- a/LEGO1/lego/legoomni/src/video/legoanimpresenter.cpp +++ b/LEGO1/lego/legoomni/src/video/legoanimpresenter.cpp @@ -404,13 +404,13 @@ LegoROI* LegoAnimPresenter::FUN_100699e0(const LegoChar* p_und) // FUNCTION: LEGO1 0x10069b10 void LegoAnimPresenter::FUN_10069b10() { - LegoAnimStructMap map; + LegoAnimStructMap anims; if (m_unk0x8c != NULL) { memset(m_unk0x8c, 0, m_unk0x94 * sizeof(*m_unk0x8c)); } - FUN_1006a3c0(map, m_anim->GetRoot(), NULL); + FUN_1006a3c0(anims, m_anim->GetRoot(), NULL); if (m_roiMap != NULL) { delete[] m_roiMap; @@ -418,10 +418,10 @@ void LegoAnimPresenter::FUN_10069b10() } m_roiMapSize = 0; - m_roiMap = new LegoROI*[map.size() + 1]; - memset(m_roiMap, 0, (map.size() + 1) * sizeof(*m_roiMap)); + m_roiMap = new LegoROI*[anims.size() + 1]; + memset(m_roiMap, 0, (anims.size() + 1) * sizeof(*m_roiMap)); - for (LegoAnimStructMap::iterator it = map.begin(); it != map.end();) { + for (LegoAnimStructMap::iterator it = anims.begin(); it != anims.end();) { MxU32 index = (*it).second.m_index; m_roiMap[index] = (*it).second.m_roi; diff --git a/LEGO1/lego/legoomni/src/video/legohideanimpresenter.cpp b/LEGO1/lego/legoomni/src/video/legohideanimpresenter.cpp index 51e62448..67d49941 100644 --- a/LEGO1/lego/legoomni/src/video/legohideanimpresenter.cpp +++ b/LEGO1/lego/legoomni/src/video/legohideanimpresenter.cpp @@ -143,18 +143,18 @@ void LegoHideAnimPresenter::FUN_1006db60(LegoTreeNode* p_node, LegoTime p_time) // FUNCTION: BETA10 0x100532fd void LegoHideAnimPresenter::FUN_1006dc10() { - LegoHideAnimStructMap map; + LegoHideAnimStructMap anims; - FUN_1006e3f0(map, m_anim->GetRoot()); + FUN_1006e3f0(anims, m_anim->GetRoot()); if (m_boundaryMap != NULL) { delete[] m_boundaryMap; } - m_boundaryMap = new LegoPathBoundary*[map.size() + 1]; + m_boundaryMap = new LegoPathBoundary*[anims.size() + 1]; m_boundaryMap[0] = NULL; - for (LegoHideAnimStructMap::iterator it = map.begin(); !(it == map.end()); it++) { + for (LegoHideAnimStructMap::iterator it = anims.begin(); !(it == anims.end()); it++) { m_boundaryMap[(*it).second.m_index] = (*it).second.m_boundary; delete[] const_cast((*it).first); } diff --git a/LEGO1/lego/legoomni/src/worlds/registrationbook.cpp b/LEGO1/lego/legoomni/src/worlds/registrationbook.cpp index 950e0b2e..5ade0b3a 100644 --- a/LEGO1/lego/legoomni/src/worlds/registrationbook.cpp +++ b/LEGO1/lego/legoomni/src/worlds/registrationbook.cpp @@ -576,12 +576,12 @@ MxLong RegistrationBook::HandlePathStruct(LegoPathStructNotificationParam& p_par // FUNCTION: LEGO1 0x10078350 MxBool RegistrationBook::CreateSurface() { - MxCompositePresenterList* list = m_checkmark[0]->GetList(); + MxCompositePresenterList* presenters = m_checkmark[0]->GetList(); MxStillPresenter *presenter, *uninitialized; - if (list) { - if (list->begin() != list->end()) { - presenter = (MxStillPresenter*) list->front(); + if (presenters) { + if (presenters->begin() != presenters->end()) { + presenter = (MxStillPresenter*) presenters->front(); } else { presenter = uninitialized; // intentionally uninitialized variable diff --git a/LEGO1/omni/src/main/mxomni.cpp b/LEGO1/omni/src/main/mxomni.cpp index b851b6fd..d7e79bb0 100644 --- a/LEGO1/omni/src/main/mxomni.cpp +++ b/LEGO1/omni/src/main/mxomni.cpp @@ -399,9 +399,9 @@ void MxOmni::SetSound3D(MxBool p_use3dSound) MxBool MxOmni::DoesEntityExist(MxDSAction& p_dsAction) { if (m_streamer->FUN_100b9b30(p_dsAction)) { - MxNotificationPtrList* queue = m_notificationManager->GetQueue(); + MxNotificationPtrList* notifications = m_notificationManager->GetQueue(); - if (!queue || queue->size() == 0) { + if (!notifications || notifications->size() == 0) { return TRUE; } } diff --git a/LEGO1/omni/src/video/mxsmkpresenter.cpp b/LEGO1/omni/src/video/mxsmkpresenter.cpp index 1ac6bd1e..6e38c43d 100644 --- a/LEGO1/omni/src/video/mxsmkpresenter.cpp +++ b/LEGO1/omni/src/video/mxsmkpresenter.cpp @@ -72,15 +72,15 @@ void MxSmkPresenter::LoadFrame(MxStreamChunk* p_chunk) m_currentFrame++; VTable0x88(); - MxRectList list(TRUE); - MxSmack::LoadFrame(bitmapInfo, bitmapData, &m_mxSmack, chunkData, paletteChanged, &list); + MxRectList rects(TRUE); + MxSmack::LoadFrame(bitmapInfo, bitmapData, &m_mxSmack, chunkData, paletteChanged, &rects); if (((MxDSMediaAction*) m_action)->GetPaletteManagement() && paletteChanged) { RealizePalette(); } MxRect32 invalidateRect; - MxRectListCursor cursor(&list); + MxRectListCursor cursor(&rects); MxRect32* rect; while (cursor.Next(rect)) {