Use same pathing array size as nzp_maxai returns

This commit is contained in:
cypress 2024-06-17 17:22:33 -07:00 committed by GitHub
parent 27ad857d76
commit 8bc298bfb6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1491,8 +1491,7 @@ int closedset[MAX_WAYPOINTS]; // The set of nodes already evaluated.
int openset[MAX_WAYPOINTS];//Actual sorted open list int openset[MAX_WAYPOINTS];//Actual sorted open list
int opensetRef[MAX_WAYPOINTS];//Reference values of open list int opensetRef[MAX_WAYPOINTS];//Reference values of open list
int opensetLength;//equivalent of javaScript's array[].length; int opensetLength;//equivalent of javaScript's array[].length;
#define MaxZombies 16 #define MaxZombies 12
zombie_ai zombie_list[MaxZombies]; zombie_ai zombie_list[MaxZombies];
//Debug// //Debug//
void printSortedOpenSet() void printSortedOpenSet()
@ -3446,7 +3445,7 @@ nzp_maxai()
*/ */
void PF_MaxZombies(void) void PF_MaxZombies(void)
{ {
G_FLOAT(OFS_RETURN) = 12; G_FLOAT(OFS_RETURN) = MaxZombies;
} }
/* /*