From 3fcb240f8e4d02aace63a7ba4a96284b3aedef86 Mon Sep 17 00:00:00 2001 From: Niels Martin Hansen Date: Thu, 6 Feb 2020 16:27:58 +0100 Subject: [PATCH] Fix d84b67e5: Station rating effects affecting too large area --- 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 adc2b0084e..385072b956 100644 --- a/src/station_cmd.cpp +++ b/src/station_cmd.cpp @@ -3858,7 +3858,7 @@ void StationMonthlyLoop() void ModifyStationRatingAround(TileIndex tile, Owner owner, int amount, uint radius) { ForAllStationsRadius(tile, radius, [&](Station *st) { - if (st->owner == owner) { + if (st->owner == owner && DistanceManhattan(tile, st->xy) <= radius) { for (CargoID i = 0; i < NUM_CARGO; i++) { GoodsEntry *ge = &st->goods[i];