Rename _countof to sizeOfArray (#921)

This commit is contained in:
Christian Semmler
2024-05-14 10:35:22 -04:00
committed by GitHub
parent 95ed90aacb
commit e32e06321a
20 changed files with 89 additions and 89 deletions

View File

@@ -127,7 +127,7 @@ void HistoryBook::ReadyWorld()
(*scorebox)->SetTickleState(MxPresenter::e_repeating);
(*scorebox)->SetPosition(scoreX + 0xa1, scoreY);
for (MxS16 letterIndex = 0; letterIndex < (MxS16) _countof(m_names[0]);) {
for (MxS16 letterIndex = 0; letterIndex < (MxS16) sizeOfArray(m_names[0]);) {
MxS16 letter = score->m_name.m_letters[letterIndex];
if (letter == -1) {

View File

@@ -492,7 +492,7 @@ void Isle::Enable(MxBool p_enable)
for (MxU32 i = 0; i < 5; i++) {
MxS32 r = rand() % 5;
for (MxU32 j = 0; j < _countof(locations); j++) {
for (MxU32 j = 0; j < sizeOfArray(locations); j++) {
if (locations[j] != 0 && r-- == 0) {
AnimationManager()->AddExtra(locations[j], TRUE);
locations[j] = 0;