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 | 7bbcf5875c2fc6a8fa80e417d65e1094947d78b8 (patch) | |
tree | c97da17a330889a788b8654dddbc7507d01b3b38 /aircraft_cmd.c | |
parent | e1c19367f0cebbe90596319e9f82d959fa54621c (diff) | |
download | openttd-7bbcf5875c2fc6a8fa80e417d65e1094947d78b8.tar.xz |
(svn r1749) Move the functions which calculate distances to map.[ch] and give the more meaningful names
Diffstat (limited to 'aircraft_cmd.c')
-rw-r--r-- | aircraft_cmd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/aircraft_cmd.c b/aircraft_cmd.c index 48fbfbbbd..3b9b97358 100644 --- a/aircraft_cmd.c +++ b/aircraft_cmd.c @@ -48,7 +48,7 @@ static uint32 FindNearestHangar(Vehicle *v) // don't crash the planes if we know they can't land at the airport if (HASBIT(v->subtype,1) && st->airport_type == AT_SMALL && !_cheats.no_jetcrash.value) continue; - temp_distance = GetTileDistAdv(v->tile, st->airport_tile); + temp_distance = DistanceSquare(v->tile, st->airport_tile); if (temp_distance < distance) { distance = temp_distance; index_to_target = st->index; |