mirror of
https://github.com/ineedbots/iw4_bot_warfare.git
synced 2025-06-28 07:01:49 +00:00
Reduce var usage no kd tree
This commit is contained in:
@ -1823,7 +1823,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);
|
||||
}
|
||||
|
||||
/*
|
||||
@ -1851,7 +1851,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;
|
||||
|
||||
|
Reference in New Issue
Block a user