From 8bc298bfb61f4faaf77e2616c84796b9e295c935 Mon Sep 17 00:00:00 2001 From: cypress Date: Mon, 17 Jun 2024 17:22:33 -0700 Subject: [PATCH] Use same pathing array size as nzp_maxai returns --- source/pr_cmds.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/source/pr_cmds.c b/source/pr_cmds.c index 30f8c1e..d8ea282 100644 --- a/source/pr_cmds.c +++ b/source/pr_cmds.c @@ -1491,8 +1491,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 12 zombie_ai zombie_list[MaxZombies]; //Debug// void printSortedOpenSet() @@ -3446,7 +3445,7 @@ nzp_maxai() */ void PF_MaxZombies(void) { - G_FLOAT(OFS_RETURN) = 12; + G_FLOAT(OFS_RETURN) = MaxZombies; } /*