1
0
mirror of https://github.com/ineedbots/iw5_bot_warfare.git synced 2025-06-28 23:21:51 +00:00

Greatly reduce variable usage

This commit is contained in:
ineedbots
2021-05-25 13:18:21 -06:00
parent 091527e6a6
commit a77d5f262c
7 changed files with 3037 additions and 3575 deletions

View File

@ -1814,7 +1814,7 @@ cleanUpAStar(team)
self waittill_any("death", "disconnect", "kill_goal");
for(i = self.bot.astar.size - 1; i >= 0; i--)
level.waypoints[self.bot.astar[i]].bots[team]--;
RemoveWaypointUsage(self.bot.astar[i], team);
}
/*
@ -1842,7 +1842,7 @@ removeAStar()
remove = self.bot.astar.size-1;
if(level.teamBased)
level.waypoints[self.bot.astar[remove]].bots[self.team]--;
RemoveWaypointUsage(self.bot.astar[remove], self.team);
self.bot.astar[remove] = undefined;