From 1929c0efcdc6f0062477c7b920b9776166d73a08 Mon Sep 17 00:00:00 2001 From: Christian Semmler Date: Wed, 27 Nov 2024 15:36:27 -0700 Subject: [PATCH] Fix naming --- .../lego/legoomni/src/common/legogamestate.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/LEGO1/lego/legoomni/src/common/legogamestate.cpp b/LEGO1/lego/legoomni/src/common/legogamestate.cpp index 2e67030d..e71fa871 100644 --- a/LEGO1/lego/legoomni/src/common/legogamestate.cpp +++ b/LEGO1/lego/legoomni/src/common/legogamestate.cpp @@ -1274,25 +1274,25 @@ void LegoGameState::History::WriteScoreHistory() } } - MxU8 scoresTmp[5][5]; - Username playerTmp; - undefined2 unk2aTmp; + MxU8 tmpScores[5][5]; + Username tmpPlayer; + undefined2 tmpUnk0x2a; // TODO: Match bubble sort loops for (MxS32 i = m_count - 1; i > 0; i--) { for (MxS32 j = 1; j <= i; j++) { if (m_scores[j - 1].m_totalScore < m_scores[j].m_totalScore) { - memcpy(scoresTmp, m_scores[j - 1].m_scores, sizeof(scoresTmp)); - playerTmp = m_scores[j - 1].m_name; - unk2aTmp = m_scores[j - 1].m_unk0x2a; + memcpy(tmpScores, m_scores[j - 1].m_scores, sizeof(tmpScores)); + tmpPlayer = m_scores[j - 1].m_name; + tmpUnk0x2a = m_scores[j - 1].m_unk0x2a; memcpy(m_scores[j - 1].m_scores, m_scores[j].m_scores, sizeof(m_scores[j - 1].m_scores)); m_scores[j - 1].m_name = m_scores[j].m_name; m_scores[j - 1].m_unk0x2a = m_scores[j].m_unk0x2a; - memcpy(m_scores[j].m_scores, scoresTmp, sizeof(m_scores[j].m_scores)); - m_scores[j].m_name = playerTmp; - m_scores[j].m_unk0x2a = unk2aTmp; + memcpy(m_scores[j].m_scores, tmpScores, sizeof(m_scores[j].m_scores)); + m_scores[j].m_name = tmpPlayer; + m_scores[j].m_unk0x2a = tmpUnk0x2a; } } }