mirror of
https://github.com/isledecomp/isle.git
synced 2026-01-23 16:21:15 +00:00
Fix naming
This commit is contained in:
parent
38d14df47a
commit
1929c0efcd
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user