Changeset - r24084:526c33970f42
[Not reviewed]
master
0 1 0
Niels Martin Hansen - 4 years ago 2020-02-06 15:27:58
nielsm@indvikleren.dk
Fix d84b67e5: Station rating effects affecting too large area
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/station_cmd.cpp
Show inline comments
 
@@ -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];
 

	
0 comments (0 inline, 0 general)