mirror of
https://github.com/isledecomp/isle.git
synced 2025-10-23 16:34:06 +00:00
Rename _countof to sizeOfArray (#921)
This commit is contained in:

committed by
GitHub

parent
95ed90aacb
commit
e32e06321a
@@ -127,7 +127,7 @@ void LegoActor::SetROI(LegoROI* p_roi, MxBool p_bool1, MxBool p_bool2)
|
||||
if (p_roi) {
|
||||
const char* name = p_roi->GetName();
|
||||
|
||||
for (MxU32 i = 1; i <= _countof(g_actorNames) - 1; i++) {
|
||||
for (MxU32 i = 1; i <= sizeOfArray(g_actorNames) - 1; i++) {
|
||||
if (!strcmpi(name, g_actorNames[i])) {
|
||||
m_type = e_character;
|
||||
m_actorId = i;
|
||||
|
@@ -407,7 +407,7 @@ MxResult LegoNavController::UpdateLocation(const char* p_location)
|
||||
{
|
||||
MxResult result = FAILURE;
|
||||
|
||||
for (MxS32 i = 0; i < (MxS32) _countof(g_locations); i++) {
|
||||
for (MxS32 i = 0; i < (MxS32) sizeOfArray(g_locations); i++) {
|
||||
if (!strcmpi(p_location, g_locations[i].m_name)) {
|
||||
MxMatrix mat;
|
||||
LegoROI* viewROI = VideoManager()->GetViewROI();
|
||||
@@ -440,7 +440,7 @@ MxResult LegoNavController::UpdateLocation(MxU32 p_location)
|
||||
{
|
||||
MxResult result = FAILURE;
|
||||
|
||||
if (p_location < _countof(g_locations)) {
|
||||
if (p_location < sizeOfArray(g_locations)) {
|
||||
MxMatrix mat;
|
||||
LegoROI* viewROI = VideoManager()->GetViewROI();
|
||||
|
||||
@@ -475,7 +475,7 @@ MxResult LegoNavController::UpdateLocation(MxU32 p_location)
|
||||
// FUNCTION: BETA10 0x1009c259
|
||||
LegoLocation* LegoNavController::GetLocation(MxU32 p_location)
|
||||
{
|
||||
if (p_location < _countof(g_locations)) {
|
||||
if (p_location < sizeOfArray(g_locations)) {
|
||||
return &g_locations[p_location];
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user