Changeset - r18599:781a019dd157
[Not reviewed]
master
0 1 0
yexo - 13 years ago 2011-12-09 15:16:21
yexo@openttd.org
(svn r23456) -Fix (r23441): oilrigs don't have any layouts nor do they provide airport noise
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/station_cmd.cpp
Show inline comments
 
@@ -2111,7 +2111,7 @@ void UpdateAirportsNoise()
 
	FOR_ALL_TOWNS(t) t->noise_reached = 0;
 

	
 
	FOR_ALL_STATIONS(st) {
 
		if (st->airport.tile != INVALID_TILE) {
 
		if (st->airport.tile != INVALID_TILE && st->airport.type != AT_OILRIG) {
 
			const AirportSpec *as = st->airport.GetSpec();
 
			Town *nearest = AirportGetNearestTown(as, st->airport.layout, st->airport.tile);
 
			nearest->noise_reached += GetAirportNoiseLevelForTown(as, st->airport.layout, nearest->xy, st->airport.tile);
0 comments (0 inline, 0 general)