From a44e937eb0473c017cf85f388cccf407a88d0574 Mon Sep 17 00:00:00 2001 From: Jonathan G Rennison Date: Mon, 10 Feb 2020 18:45:36 +0000 Subject: [PATCH] Fix 58433c76: Incorrect town noise level update on airport construction --- src/station_cmd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/station_cmd.cpp b/src/station_cmd.cpp index 275c1958f0..551ead4f3c 100644 --- a/src/station_cmd.cpp +++ b/src/station_cmd.cpp @@ -2467,7 +2467,7 @@ CommandCost CmdBuildAirport(TileIndex tile, DoCommandFlag flags, uint32 p1, uint /* The noise level is the noise from the airport and reduce it to account for the distance to the town center. */ uint dist; Town *nearest = AirportGetNearestTown(as, iter, dist); - uint newnoise_level = GetAirportNoiseLevelForDistance(as, dist); + uint newnoise_level = nearest->noise_reached + GetAirportNoiseLevelForDistance(as, dist); if (action == AIRPORT_UPGRADE) { const AirportSpec *old_as = st->airport.GetSpec();