mirror of
https://github.com/isledecomp/isle.git
synced 2026-01-28 18:51:16 +00:00
Rename function
This commit is contained in:
parent
3af1b10af3
commit
110e7d7a52
@ -29,7 +29,7 @@ class InfocenterState : public LegoState {
|
||||
// FUNCTION: LEGO1 0x10071830
|
||||
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 MxBool DoesNameExist() { return m_letters[0] != NULL; }
|
||||
inline Playlist& GetExitDialogueAct1() { return m_exitDialogueAct1; }
|
||||
|
||||
@ -66,7 +66,7 @@ Infocenter::~Infocenter()
|
||||
m_infocenterState->GetNameLetter(i)->Enable(FALSE);
|
||||
}
|
||||
i++;
|
||||
} while (i < m_infocenterState->GetNameLength());
|
||||
} while (i < m_infocenterState->GetMaxNameLength());
|
||||
|
||||
ControlManager()->Unregister(this);
|
||||
|
||||
@ -101,7 +101,7 @@ MxResult Infocenter::Create(MxDSAction& p_dsAction)
|
||||
}
|
||||
|
||||
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) {
|
||||
break;
|
||||
}
|
||||
@ -1375,7 +1375,7 @@ void Infocenter::StartCredits()
|
||||
m_infocenterState->GetNameLetter(i)->Enable(FALSE);
|
||||
}
|
||||
i++;
|
||||
} while (i < m_infocenterState->GetNameLength());
|
||||
} while (i < m_infocenterState->GetMaxNameLength());
|
||||
|
||||
VideoManager()->FUN_1007c520();
|
||||
GetViewManager()->RemoveAll(NULL);
|
||||
|
||||
@ -120,5 +120,5 @@ InfocenterState::~InfocenterState()
|
||||
delete GetNameLetter(i);
|
||||
}
|
||||
i++;
|
||||
} while (i < GetNameLength());
|
||||
} while (i < GetMaxNameLength());
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user