mirror of
https://github.com/isledecomp/isle.git
synced 2026-01-28 18:51:16 +00:00
Rename
This commit is contained in:
parent
eb0bcb9837
commit
096487b2cb
@ -94,7 +94,7 @@ class LegoGameState {
|
||||
};
|
||||
|
||||
// SIZE 0x2c
|
||||
struct Score {
|
||||
struct ScoreItem {
|
||||
undefined2 m_unk0x00; // 0x00
|
||||
MxU8 m_state[25]; // 0x02
|
||||
ScoreName m_name; // 0x1c
|
||||
@ -106,10 +106,10 @@ class LegoGameState {
|
||||
void WriteScoreHistory();
|
||||
void FUN_1003ccf0(LegoFile&);
|
||||
|
||||
inline Score* GetScore(MxS16 p_index) { return p_index >= m_count ? NULL : &m_scores[p_index]; }
|
||||
inline ScoreItem* GetScore(MxS16 p_index) { return p_index >= m_count ? NULL : &m_scores[p_index]; }
|
||||
|
||||
MxS16 m_count; // 0x00
|
||||
Score m_scores[20]; // 0x02
|
||||
MxS16 m_count; // 0x00
|
||||
ScoreItem m_scores[20]; // 0x02
|
||||
};
|
||||
|
||||
LegoGameState();
|
||||
|
||||
@ -16,7 +16,7 @@
|
||||
#include <stdio.h>
|
||||
|
||||
DECOMP_SIZE_ASSERT(LegoGameState::ScoreName, 0xe)
|
||||
DECOMP_SIZE_ASSERT(LegoGameState::Score, 0x2c)
|
||||
DECOMP_SIZE_ASSERT(LegoGameState::ScoreItem, 0x2c)
|
||||
DECOMP_SIZE_ASSERT(LegoGameState::Scores, 0x372)
|
||||
DECOMP_SIZE_ASSERT(LegoGameState, 0x430)
|
||||
|
||||
|
||||
@ -94,7 +94,7 @@ void HistoryBook::ReadyWorld()
|
||||
MxS32 scoreY = 0x79;
|
||||
|
||||
for (MxS16 scoreIndex = 0; scoreIndex < GameState()->GetScores()->m_count; scoreIndex++) {
|
||||
LegoGameState::Score* score = GameState()->GetScores()->GetScore(scoreIndex);
|
||||
LegoGameState::ScoreItem* score = GameState()->GetScores()->GetScore(scoreIndex);
|
||||
|
||||
MxStillPresenter** scorebox = &m_scores[scoreIndex];
|
||||
*scorebox = scoreboxMaster->Clone();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user