Disable non-noise town airport limit in local authority permissive mode

This commit is contained in:
Jonathan G Rennison
2024-02-10 12:43:14 +00:00
parent 516e8defb5
commit 2ef2142d95

View File

@@ -2802,7 +2802,7 @@ CommandCost CmdBuildAirport(TileIndex tile, DoCommandFlag flags, uint32_t p1, ui
authority_refuse_message = STR_ERROR_LOCAL_AUTHORITY_REFUSES_NOISE; authority_refuse_message = STR_ERROR_LOCAL_AUTHORITY_REFUSES_NOISE;
authority_refuse_town = nearest; authority_refuse_town = nearest;
} }
} else if (action != AIRPORT_UPGRADE) { } else if (_settings_game.difficulty.town_council_tolerance != TOWN_COUNCIL_PERMISSIVE && action != AIRPORT_UPGRADE) {
Town *t = ClosestTownFromTile(tile, UINT_MAX); Town *t = ClosestTownFromTile(tile, UINT_MAX);
uint num = 0; uint num = 0;
for (const Station *st : Station::Iterate()) { for (const Station *st : Station::Iterate()) {