diff options
author | Niels Martin Hansen <nielsm@indvikleren.dk> | 2020-02-06 16:27:58 +0100 |
---|---|---|
committer | Niels Martin Hansen <nielsm@indvikleren.dk> | 2020-02-06 16:39:25 +0100 |
commit | 3fcb240f8e4d02aace63a7ba4a96284b3aedef86 (patch) | |
tree | 812b2cc60cbbffe05df0a22723c0d65bdf516bd6 /src | |
parent | 58c8ff456e13908718ec871c1af6d8d6257ee062 (diff) | |
download | openttd-3fcb240f8e4d02aace63a7ba4a96284b3aedef86.tar.xz |
Fix d84b67e5: Station rating effects affecting too large area
Diffstat (limited to 'src')
-rw-r--r-- | src/station_cmd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/station_cmd.cpp b/src/station_cmd.cpp index adc2b0084..385072b95 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]; |