forked from mirror/OpenTTD
(svn r1749) Move the functions which calculate distances to map.[ch] and give the more meaningful names
This commit is contained in:
@@ -701,7 +701,7 @@ static Waypoint *FindDeletedWaypointCloseTo(uint tile)
|
||||
|
||||
for(cp = _waypoints; cp != endof(_waypoints); cp++) {
|
||||
if (cp->deleted && cp->xy) {
|
||||
cur_dist = GetTileDist(tile, cp->xy);
|
||||
cur_dist = DistanceManhattan(tile, cp->xy);
|
||||
if (cur_dist < thres) {
|
||||
thres = cur_dist;
|
||||
best = cp;
|
||||
|
Reference in New Issue
Block a user