diff options
author | yexo <yexo@openttd.org> | 2011-12-09 15:16:21 +0000 |
---|---|---|
committer | yexo <yexo@openttd.org> | 2011-12-09 15:16:21 +0000 |
commit | e7777f44b9c6e44b882052227f371def959ffbfd (patch) | |
tree | 07ae1405bd5b31f6f5d72e1b4e3f18c79551fdcb /src | |
parent | c53440c1032c56912f71cb1e575d4523a9820abb (diff) | |
download | openttd-e7777f44b9c6e44b882052227f371def959ffbfd.tar.xz |
(svn r23456) -Fix (r23441): oilrigs don't have any layouts nor do they provide airport noise
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 efe873265..652a623f8 100644 --- a/src/station_cmd.cpp +++ b/src/station_cmd.cpp @@ -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); |