Loading

Paste #pmagjxrkt

  1. # HG changeset patch
  2. # User Ricardo@FX-8150
  3. # Date 1516994947 0
  4. #      Fri Jan 26 19:29:07 2018 +0000
  5. # Branch trunk
  6. # Node ID 00917ec0530db9e8d7f204e676381e0cb0fff776
  7. # Parent  cc75dd489dcfea3e30899f3f6cf73e394399f3d5
  8. 20
  9.  
  10. diff -r cc75dd489dcf -r 00917ec0530d src/lang/english.txt
  11. --- a/src/lang/english.txt  Fri Jan 26 19:15:48 2018 +0000
  12. +++ b/src/lang/english.txt  Fri Jan 26 19:29:07 2018 +0000
  13. @@ -4455,6 +4455,7 @@
  14.  STR_ERROR_CAN_T_SKIP_TO_ORDER                                   :{WHITE}Can't skip to selected order...
  15.  STR_ERROR_CAN_T_COPY_SHARE_ORDER                                :{WHITE}... vehicle can't go to all stations
  16.  STR_ERROR_CAN_T_ADD_ORDER                                       :{WHITE}... vehicle can't go to that station
  17. +STR_ERROR_CAN_T_ADD_ORDER_SHORT_RUNWAY                          :{WHITE}... airport runway is too short for this aeroplane
  18.  STR_ERROR_CAN_T_ADD_ORDER_SHARED                                :{WHITE}... a vehicle sharing this order can't go to that station
  19.  
  20.  STR_ERROR_CAN_T_SHARE_ORDER_LIST                                :{WHITE}Can't share order list...
  21. diff -r cc75dd489dcf -r 00917ec0530d src/order_cmd.cpp
  22. --- a/src/order_cmd.cpp Fri Jan 26 19:15:48 2018 +0000
  23. +++ b/src/order_cmd.cpp Fri Jan 26 19:29:07 2018 +0000
  24. @@ -749,7 +749,17 @@
  25.                 if (ret.Failed()) return ret;
  26.             }
  27.  
  28. -           if (!CanVehicleUseStation(v, st)) return_cmd_error(STR_ERROR_CAN_T_ADD_ORDER);
  29. +           if (!CanVehicleUseStation(v, st)) {
  30. +               if (v->type == VEH_AIRCRAFT &&
  31. +                       (AircraftVehInfo(v->engine_type)->subtype & AIR_FAST) &&
  32. +                       (st->airport.GetFTA()->flags & AirportFTAClass::SHORT_STRIP) &&
  33. +                       !_settings_game.vehicle.large_plane_on_short_runway) {
  34. +                   return_cmd_error(STR_ERROR_CAN_T_ADD_ORDER_SHORT_RUNWAY)
  35. +               } else {
  36. +                   return_cmd_error(STR_ERROR_CAN_T_ADD_ORDER);
  37. +               }
  38. +           }
  39. +
  40.             for (Vehicle *u = v->FirstShared(); u != NULL; u = u->NextShared()) {
  41.                 if (!CanVehicleUseStation(u, st)) return_cmd_error(STR_ERROR_CAN_T_ADD_ORDER_SHARED);
  42.             }

Comments