N3DS: Use same pathing array size as nzp_maxai returns

This commit is contained in:
cypress 2024-06-17 17:24:09 -07:00 committed by GitHub
parent 96e402742c
commit b147b1d681
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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;
}