Loading

Paste #p4qereprl

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

Comments