equal
deleted
inserted
replaced
44 } |
44 } |
45 |
45 |
46 /* static */ int32 AIAirport::GetAirportCoverageRadius(AirportType type) |
46 /* static */ int32 AIAirport::GetAirportCoverageRadius(AirportType type) |
47 { |
47 { |
48 if (type > AT_HELISTATION) return -1; |
48 if (type > AT_HELISTATION) return -1; |
49 return _patches.modified_catchment ? ::GetAirport(type)->catchment : (uint)CA_UNMODIFIED; |
49 return _settings.station.modified_catchment ? ::GetAirport(type)->catchment : (uint)CA_UNMODIFIED; |
50 } |
50 } |
51 |
51 |
52 /* static */ bool AIAirport::BuildAirport(TileIndex tile, AirportType type) |
52 /* static */ bool AIAirport::BuildAirport(TileIndex tile, AirportType type) |
53 { |
53 { |
54 EnforcePrecondition(false, ::IsValidTile(tile)); |
54 EnforcePrecondition(false, ::IsValidTile(tile)); |