Rename function

This commit is contained in:
Christian Semmler 2024-02-11 09:52:07 -05:00
parent 3af1b10af3
commit 110e7d7a52
3 changed files with 5 additions and 5 deletions

View File

@ -29,7 +29,7 @@ class InfocenterState : public LegoState {
// FUNCTION: LEGO1 0x10071830 // FUNCTION: LEGO1 0x10071830
MxBool VTable0x14() override { return FALSE; } // vtable+0x14 MxBool VTable0x14() override { return FALSE; } // vtable+0x14
inline MxS16 GetNameLength() { return _countof(m_letters); } inline MxS16 GetMaxNameLength() { return _countof(m_letters); }
inline MxStillPresenter* GetNameLetter(MxS32 p_index) { return m_letters[p_index]; } inline MxStillPresenter* GetNameLetter(MxS32 p_index) { return m_letters[p_index]; }
inline MxBool DoesNameExist() { return m_letters[0] != NULL; } inline MxBool DoesNameExist() { return m_letters[0] != NULL; }
inline Playlist& GetExitDialogueAct1() { return m_exitDialogueAct1; } inline Playlist& GetExitDialogueAct1() { return m_exitDialogueAct1; }

View File

@ -66,7 +66,7 @@ Infocenter::~Infocenter()
m_infocenterState->GetNameLetter(i)->Enable(FALSE); m_infocenterState->GetNameLetter(i)->Enable(FALSE);
} }
i++; i++;
} while (i < m_infocenterState->GetNameLength()); } while (i < m_infocenterState->GetMaxNameLength());
ControlManager()->Unregister(this); ControlManager()->Unregister(this);
@ -101,7 +101,7 @@ MxResult Infocenter::Create(MxDSAction& p_dsAction)
} }
MxS16 count, i; MxS16 count, i;
for (count = 0; count < m_infocenterState->GetNameLength(); count++) { for (count = 0; count < m_infocenterState->GetMaxNameLength(); count++) {
if (m_infocenterState->GetNameLetter(count) == NULL) { if (m_infocenterState->GetNameLetter(count) == NULL) {
break; break;
} }
@ -1375,7 +1375,7 @@ void Infocenter::StartCredits()
m_infocenterState->GetNameLetter(i)->Enable(FALSE); m_infocenterState->GetNameLetter(i)->Enable(FALSE);
} }
i++; i++;
} while (i < m_infocenterState->GetNameLength()); } while (i < m_infocenterState->GetMaxNameLength());
VideoManager()->FUN_1007c520(); VideoManager()->FUN_1007c520();
GetViewManager()->RemoveAll(NULL); GetViewManager()->RemoveAll(NULL);

View File

@ -120,5 +120,5 @@ InfocenterState::~InfocenterState()
delete GetNameLetter(i); delete GetNameLetter(i);
} }
i++; i++;
} while (i < GetNameLength()); } while (i < GetMaxNameLength());
} }