Match RegistrationBook::ReadyWorld (#1375)

This commit is contained in:
Christian Semmler
2025-01-24 16:32:08 -07:00
committed by GitHub
parent 82f2e2e755
commit 382f058c23

View File

@@ -392,18 +392,21 @@ void RegistrationBook::ReadyWorld()
{ {
LegoGameState* gameState = GameState(); LegoGameState* gameState = GameState();
gameState->m_history.WriteScoreHistory(); gameState->m_history.WriteScoreHistory();
MxS16 i;
PlayMusic(JukeboxScript::c_InformationCenter_Music); PlayMusic(JukeboxScript::c_InformationCenter_Music);
char letterBuffer[] = "A_Bitmap"; char letterBuffer[] = "A_Bitmap";
MxS16 i;
for (i = 0; i < 26; i++) { for (i = 0; i < 26; i++) {
if (i < 26) {
m_alphabet[i] = (MxStillPresenter*) Find("MxStillPresenter", letterBuffer); m_alphabet[i] = (MxStillPresenter*) Find("MxStillPresenter", letterBuffer);
// We need to loop through the entire alphabet, // We need to loop through the entire alphabet,
// so increment the first char of the bitmap name // so increment the first char of the bitmap name
letterBuffer[0]++; letterBuffer[0]++;
} }
}
// Now we have to do the checkmarks // Now we have to do the checkmarks
char checkmarkBuffer[] = "Check0_Ctl"; char checkmarkBuffer[] = "Check0_Ctl";
@@ -437,7 +440,7 @@ void RegistrationBook::ReadyWorld()
} }
} }
if (m_infocenterState->HasRegistered()) { if (m_infocenterState->m_letters[0] != NULL) {
PlayAction(RegbookScript::c_iic008in_PlayWav); PlayAction(RegbookScript::c_iic008in_PlayWav);
LegoROI* infoman = FindROI(g_infoman); LegoROI* infoman = FindROI(g_infoman);