# HG changeset patch
# User Samu <dj_samu@hotmail.com>
# Date 1516895235 0
# Thu Jan 25 15:47:15 2018 +0000
# Branch trunk
# Node ID 79099e360fae909af2834c39b5ff3b8d908e5f00
# Parent 23785f2ffa5d50960e4ed1dba65dec61486b1af0
commit message
diff -r 23785f2ffa5d -r 79099e360fae src/aircraft_cmd.cpp
--- a/src/aircraft_cmd.cpp Thu Jan 25 14:47:43 2018 +0000
+++ b/src/aircraft_cmd.cpp Thu Jan 25 15:47:15 2018 +0000
@@ -133,6 +133,9 @@
/* don't crash the plane if we know it can't land at the airport */
if ((afc->flags & AirportFTAClass::SHORT_STRIP) && (avi->subtype & AIR_FAST) && !_cheats.no_jetcrash.value) continue;
+ /* the plane won't land at any helicopter station */
+ if (!(afc->flags & AirportFTAClass::AIRPLANES) && (avi->subtype & AIR_CTOL)) continue;
+
/* v->tile can't be used here, when aircraft is flying v->tile is set to 0 */
uint distance = DistanceSquare(vtile, st->airport.tile);
if (v->acache.cached_max_range_sqr != 0) {