diff options
author | tron <tron@openttd.org> | 2005-01-31 07:23:15 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2005-01-31 07:23:15 +0000 |
commit | bb680056b1004ca5e8e74786764061aeedf9c188 (patch) | |
tree | c97da17a330889a788b8654dddbc7507d01b3b38 /rail_cmd.c | |
parent | 77072aedabd1e5acd2d380defac707c88d287c88 (diff) | |
download | openttd-bb680056b1004ca5e8e74786764061aeedf9c188.tar.xz |
(svn r1749) Move the functions which calculate distances to map.[ch] and give the more meaningful names
Diffstat (limited to 'rail_cmd.c')
-rw-r--r-- | rail_cmd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rail_cmd.c b/rail_cmd.c index f23d11b55..409884497 100644 --- a/rail_cmd.c +++ b/rail_cmd.c @@ -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; |