Fix d84b67e5: Station rating effects affecting too large area

This commit is contained in:
Niels Martin Hansen 2020-02-06 16:27:58 +01:00
parent 58c8ff456e
commit 3fcb240f8e
1 changed files with 1 additions and 1 deletions

View File

@ -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];