Fix int overflows, better formatting

This commit is contained in:
ineedbots
2021-05-01 13:39:15 -06:00
parent fc1e8f48d2
commit 75ed617320
6 changed files with 60 additions and 58 deletions

View File

@ -1621,7 +1621,7 @@ nearAnyOfWaypoints(dist, waypoints)
getNearestWaypointOfWaypoints(waypoints)
{
answer = undefined;
closestDist = 999999999999;
closestDist = 2147483647;
for (i = 0; i < waypoints.size; i++)
{
waypoint = waypoints[i];