Loading

Paste #pgc6tqpj9

  1. # HG changeset patch
  2. # User Ricardo@FX-8150
  3. # Date 1516920577 0
  4. #      Thu Jan 25 22:49:37 2018 +0000
  5. # Branch trunk
  6. # Node ID 8fc4fb8ac545b9c9c757136ccc0fdba6f31f4445
  7. # Parent  437a5c7b0b81f96fe16ab21e1fd51e37226e1115
  8. 10
  9.  
  10. diff -r 437a5c7b0b81 -r 8fc4fb8ac545 src/aircraft_cmd.cpp
  11. --- a/src/aircraft_cmd.cpp  Tue Jan 23 18:45:40 2018 +0000
  12. +++ b/src/aircraft_cmd.cpp  Thu Jan 25 22:49:37 2018 +0000
  13. @@ -1493,7 +1493,8 @@
  14.         AircraftEventHandler_EnterTerminal(v, apc);
  15.         /* on an airport with helipads, a helicopter will always land there
  16.          * and get serviced at the same time - setting */
  17. -       if (_settings_game.order.serviceathelipad) {
  18. +       if ((!_settings_game.order.no_servicing_if_no_breakdowns || _settings_game.difficulty.vehicle_breakdowns != 0) &&
  19. +               _settings_game.order.serviceathelipad) {
  20.             if (v->subtype == AIR_HELICOPTER && apc->num_helipads > 0) {
  21.                 /* an excerpt of ServiceAircraft, without the invisibility stuff */
  22.                 v->date_of_last_service = _date;

Comments