Skip to content

Commit

Permalink
Fix naming
Browse files Browse the repository at this point in the history
  • Loading branch information
foxtacles committed Dec 22, 2024
1 parent 49b03cb commit 859bf5d
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 18 deletions.
10 changes: 5 additions & 5 deletions LEGO1/lego/legoomni/src/video/legoanimpresenter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -404,24 +404,24 @@ 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;
m_roiMapSize = 0;
}

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;

Expand Down
8 changes: 4 additions & 4 deletions LEGO1/lego/legoomni/src/video/legohideanimpresenter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<char*>((*it).first);
}
Expand Down
8 changes: 4 additions & 4 deletions LEGO1/lego/legoomni/src/worlds/registrationbook.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions LEGO1/omni/src/main/mxomni.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down
6 changes: 3 additions & 3 deletions LEGO1/omni/src/video/mxsmkpresenter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit 859bf5d

Please sign in to comment.