mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-10 08:00:05 +00:00
(svn r13295) -Codechange: remove now redundant check
This commit is contained in:
parent
83c442cc57
commit
ee904e1df5
@ -1683,9 +1683,6 @@ uint8 GetAirportNoiseLevelForTown(const AirportFTAClass *afc, TileIndex town_til
|
||||
* an actual decrease can be granted */
|
||||
uint8 town_tolerance_distance = 8 + (_settings.difficulty.town_council_tolerance * 4);
|
||||
|
||||
/* The airport is in the "inner" distance where there is no noise reduction */
|
||||
if (distance < town_tolerance_distance) return afc->noise_level;
|
||||
|
||||
/* 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. */
|
||||
uint noise_reduction = distance / town_tolerance_distance;
|
||||
|
Loading…
Reference in New Issue
Block a user