This commit is contained in:
INeedBots 2020-10-05 19:12:59 -06:00
parent 954531a091
commit e5fabd772d

View File

@ -1094,7 +1094,7 @@ walk()
goal = PhysicsTrace(goal + (0, 0, 50), goal + (0, 0, -40), false, self);
// too small, lets bounce off the wall
if (Distance(goal, myOrg) < stepDist - 1 || randomInt(100) < 5)
if (DistanceSquared(goal, myOrg) < stepDist*stepDist - 1 || randomInt(100) < 5)
{
trace = bulletTrace(myOrg, myOrg + forward, false, self);