From 7bbcf5875c2fc6a8fa80e417d65e1094947d78b8 Mon Sep 17 00:00:00 2001 From: tron Date: Mon, 31 Jan 2005 07:23:15 +0000 Subject: (svn r1749) Move the functions which calculate distances to map.[ch] and give the more meaningful names --- rail_cmd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rail_cmd.c') 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; -- cgit v1.2.3-54-g00ecf