mirror of
https://github.com/OpenTTD/OpenTTD
synced 2026-01-17 01:12:39 +01:00
Codechange: Use EnumBitSet for AirportFTAClass::Flags (#13535)
This commit is contained in:
@@ -2591,7 +2591,7 @@ CommandCost CmdBuildAirport(DoCommandFlag flags, TileIndex tile, uint8_t airport
|
||||
/* Distant join */
|
||||
if (st == nullptr && distant_join) st = Station::GetIfValid(station_to_join);
|
||||
|
||||
ret = BuildStationPart(&st, flags, reuse, airport_area, (GetAirport(airport_type)->flags & AirportFTAClass::AIRPLANES) ? STATIONNAMING_AIRPORT : STATIONNAMING_HELIPORT);
|
||||
ret = BuildStationPart(&st, flags, reuse, airport_area, GetAirport(airport_type)->flags.Test(AirportFTAClass::Flag::Airplanes) ? STATIONNAMING_AIRPORT : STATIONNAMING_HELIPORT);
|
||||
if (ret.Failed()) return ret;
|
||||
|
||||
if (st != nullptr && st->airport.tile != INVALID_TILE) {
|
||||
|
||||
Reference in New Issue
Block a user