# HG changeset patch # User Niels Martin Hansen # Date 2020-02-06 15:27:58 # Node ID 526c33970f424933c0685727d094237c46deb940 # Parent 8b688427edb5e39b497112a3b220f25ff519d5a4 Fix d84b67e5: Station rating effects affecting too large area diff --git a/src/station_cmd.cpp b/src/station_cmd.cpp --- 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];