From a4e575585860d127ff03593fc9fe231200b4826f Mon Sep 17 00:00:00 2001 From: Misha <106913236+MishaProductions@users.noreply.github.com> Date: Fri, 15 Mar 2024 14:47:14 -0400 Subject: [PATCH] improve accuracy --- LEGO1/lego/legoomni/src/worlds/registrationbook.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/LEGO1/lego/legoomni/src/worlds/registrationbook.cpp b/LEGO1/lego/legoomni/src/worlds/registrationbook.cpp index cf1be873..3f9332dc 100644 --- a/LEGO1/lego/legoomni/src/worlds/registrationbook.cpp +++ b/LEGO1/lego/legoomni/src/worlds/registrationbook.cpp @@ -122,7 +122,8 @@ void RegistrationBook::ReadyWorld() PlayMusic(JukeboxScript::c_InformationCenter_Music); char letterBuffer[] = "A_Bitmap"; - for (MxS16 i = 0; i < 26; i++) { + MxS16 i = 0; + for (i = 0; i < 26; i++) { m_alphabet[i] = (MxStillPresenter*) Find("MxStillPresenter", letterBuffer); // We need to loop through the entire alphabet, @@ -147,7 +148,7 @@ void RegistrationBook::ReadyWorld() if (playerCount > 0) { for (i = 1; i <= playerCount; i++) { for (MxS16 j = 0; j < 7; j++) { - if (GameState()->m_players[i].m_letters[j] != -1) { + if (gameState->m_players[i].m_letters[j] != -1) { if (!j) { m_checkmark[i]->Enable(TRUE); } @@ -165,7 +166,7 @@ void RegistrationBook::ReadyWorld() } } - if (m_infocenterState->GetNameLetter(0) == NULL) { + if (m_infocenterState->HasRegistered()) { MxDSAction action; action.SetAtomId(*g_regbookScript); action.SetObjectId(RegbookScript::c_iic006in_RunAnim);