mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-09-03 22:59:30 +00:00
Fix f92cf38
: Reduce graduation of town noise tolerance distance multiplier for permissive towns
This commit is contained in:
@@ -2288,7 +2288,8 @@ uint8_t GetAirportNoiseLevelForDistance(const AirportSpec *as, uint distance)
|
||||
* adding the town_council_tolerance 4 times, as a way to graduate, depending of the tolerance.
|
||||
* Basically, it says that the less tolerant a town is, the bigger the distance before
|
||||
* an actual decrease can be granted */
|
||||
uint8_t town_tolerance_distance = 8 + (_settings_game.difficulty.town_council_tolerance * 4);
|
||||
uint8_t town_tolerance_distance = 8;
|
||||
if (_settings_game.difficulty.town_council_tolerance != TownCouncilAttitudes::TOWN_COUNCIL_PERMISSIVE) town_tolerance_distance += _settings_game.difficulty.town_council_tolerance * 4;
|
||||
|
||||
/* now, we want to have the distance segmented using the distance judged bareable by town
|
||||
* This will give us the coefficient of reduction the distance provides. */
|
||||
|
Reference in New Issue
Block a user