setting for disabling 'runway too short' warning

This commit is contained in:
Pavel Stupnikov
2015-03-26 00:45:33 +03:00
parent e7047bd71b
commit 3f98ed80af
5 changed files with 11 additions and 0 deletions

View File

@@ -1794,6 +1794,7 @@ void CheckOrders(const Vehicle *v)
} else if (v->type == VEH_AIRCRAFT &&
(AircraftVehInfo(v->engine_type)->subtype & AIR_FAST) &&
(st->airport.GetFTA()->flags & AirportFTAClass::SHORT_STRIP) &&
_settings_client.gui.runway_too_short_warn &&
_settings_game.vehicle.plane_crashes != 0 &&
!_cheats.no_jetcrash.value &&
message == INVALID_STRING_ID) {