Loading

Revision differences

Old revision #piggrywxqNew revision #p27eqxtkx
1--- C:/users/ricardo/appdata/local/temp/thg.deauyj/trunk.10.22740/src/aircraft_cmd.cpp    qui jan 25 16:10:52 2018  1--- C:/users/ricardo/appdata/local/temp/thg.deauyj/trunk.10.22740/src/aircraft_cmd.cpp    qui jan 25 16:10:52 2018  
2+++ C:/users/ricardo/appdata/local/temp/thg.deauyj/trunk.10.22741/src/aircraft_cmd.cpp    qui jan 25 16:10:52 2018  2+++ C:/users/ricardo/appdata/local/temp/thg.deauyj/trunk.10.22741/src/aircraft_cmd.cpp    qui jan 25 16:10:52 2018  
3@@ -135,0 +136,3 @@ static StationID FindNearestHangar(const Aircraft  3@@ -133,6 +133,9 @@ static StationID FindNearestHangar(const Aircraft
   4         /* don't crash the plane if we know it can't land at the airport */
   5         if ((afc->flags & AirportFTAClass::SHORT_STRIP) && (avi->subtype & AIR_FAST) && !_cheats.no_jetcrash.value) continue;
   6 
4+        /* the plane won't land at any helicopter station */  7+        /* the plane won't land at any helicopter station */  
5+        if (!(afc->flags & AirportFTAClass::AIRPLANES) && (avi->subtype & AIR_CTOL)) continue;  8+        if (!(afc->flags & AirportFTAClass::AIRPLANES) && (avi->subtype & AIR_CTOL)) continue;  
6+ 9+
   10         /* v->tile can't be used here, when aircraft is flying v->tile is set to 0 */
   11         uint distance = DistanceSquare(vtile, st->airport.tile);
   12         if (v->acache.cached_max_range_sqr != 0) {