From b147b1d68164c30b71dd0a88096bbb205e0f7b28 Mon Sep 17 00:00:00 2001 From: cypress Date: Mon, 17 Jun 2024 17:24:09 -0700 Subject: [PATCH] N3DS: Use same pathing array size as nzp_maxai returns --- source/pr_cmds.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/pr_cmds.c b/source/pr_cmds.c index ea7e2da..d4ea32f 100644 --- a/source/pr_cmds.c +++ b/source/pr_cmds.c @@ -1476,7 +1476,7 @@ int closedset[MAX_WAYPOINTS]; // The set of nodes already evaluated. int openset[MAX_WAYPOINTS];//Actual sorted open list int opensetRef[MAX_WAYPOINTS];//Reference values of open list int opensetLength;//equivalent of javaScript's array[].length; -#define MaxZombies 16 +#define MaxZombies 18 zombie_ai zombie_list[MaxZombies]; //Debug// @@ -3423,7 +3423,7 @@ nzp_maxai() void PF_MaxZombies(void) { if (new3ds_flag) - G_FLOAT(OFS_RETURN) = 18; + G_FLOAT(OFS_RETURN) = MaxZombies; else G_FLOAT(OFS_RETURN) = 12; }