mirror of
https://github.com/perfect-dark-pc-port/perfect_dark.git
synced 2026-10-23 15:52:41 +02:00
Use ARRAYCOUNT in many more places
This commit is contained in:
1 parent
5255f7c346
commit
2e386f7a34
85 files changed
+837
-823
No files matched your search
+2
-2
@@ -23,7 +23,7 @@
|
||||
#include "data.h"
|
||||
#include "types.h"
|
||||
|
||||
u8 g_MpSelectedPlayersForStats[4];
|
||||
u8 g_MpSelectedPlayersForStats[MAX_PLAYERS];
|
||||
|
||||
#if VERSION >= VERSION_NTSC_1_0
|
||||
s32 g_ScissorX1 = 0;
|
||||
@@ -1791,7 +1791,7 @@ Gfx *menuitemObjectivesRender(Gfx *gdl, struct menurendercontext *context)
|
||||
s32 position = 1;
|
||||
s32 i;
|
||||
|
||||
for (i = 0; i < 6; i++) {
|
||||
for (i = 0; i < ARRAYCOUNT(g_Briefing.objectivenames); i++) {
|
||||
if (g_Briefing.objectivenames[i] && g_Briefing.objectivedifficulties[i] & (1 << lvGetDifficulty())) {
|
||||
gdl = menuitemObjectivesRenderOne(gdl,
|
||||
context->dialog,
|
||||
|
||||
Reference in new issue
Block a user