smol changes

This commit is contained in:
INeedBots
2020-11-25 13:27:04 -06:00
parent 16d4f4795d
commit 91997120e8
2 changed files with 14 additions and 5 deletions

View File

@ -1501,7 +1501,7 @@ getNearestWaypointOfWaypoints(waypoints)
waypoint = waypoints[i];
thisDist = DistanceSquared(self.origin, waypoint.origin);
if (thisDist > closestDist)
if (isDefined(answer) && thisDist > closestDist)
continue;
answer = waypoint;
@ -2270,9 +2270,6 @@ bot_use_tube_think()
if (self IsBotFragging() || self IsBotSmoking())
continue;
if(self IsBotReloading() || self IsBotKnifing())
continue;
if(self isDefusing() || self isPlanting())
continue;