changeset 1245 | 768d9bc95aaa |
parent 1238 | f546fcc6b0c9 |
child 1262 | b232a05f37e4 |
--- a/aircraft_cmd.c Mon Jan 31 06:46:53 2005 +0000 +++ b/aircraft_cmd.c Mon Jan 31 07:23:15 2005 +0000 @@ -48,7 +48,7 @@ // 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;