1
0
mirror of https://github.com/OpenTTD/OpenTTD synced 2026-01-16 00:42:45 +01:00

Codechange: Use EnumBitSet for AirportFTAClass::Flags (#13535)

This commit is contained in:
Peter Nelson
2025-02-11 21:49:18 +00:00
committed by GitHub
parent 9cdf740097
commit 0d5708ba86
6 changed files with 14 additions and 16 deletions

View File

@@ -1729,7 +1729,7 @@ void CheckOrders(const Vehicle *v)
message = STR_NEWS_VEHICLE_HAS_INVALID_ENTRY;
} else if (v->type == VEH_AIRCRAFT &&
(AircraftVehInfo(v->engine_type)->subtype & AIR_FAST) &&
(st->airport.GetFTA()->flags & AirportFTAClass::SHORT_STRIP) &&
st->airport.GetFTA()->flags.Test(AirportFTAClass::Flag::ShortStrip) &&
!_cheats.no_jetcrash.value &&
message == INVALID_STRING_ID) {
message = STR_NEWS_PLANE_USES_TOO_SHORT_RUNWAY;