mirror of
https://github.com/isledecomp/isle.git
synced 2025-10-25 17:34:05 +00:00
Rename _countof to sizeOfArray (#921)
This commit is contained in:
committed by
GitHub
parent
95ed90aacb
commit
e32e06321a
@@ -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) {
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user