Feature: Allow disabling local authority control of company actions

This commit is contained in:
Tyler Trahan
2022-03-11 09:50:43 -07:00
committed by Michael Lutz
parent 8537fa7206
commit f92cf38ab5
8 changed files with 37 additions and 14 deletions

View File

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