summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2011-07-04 22:07:53 +0000
committerfrosch <frosch@openttd.org>2011-07-04 22:07:53 +0000
commit412cbe133dc0ff0c9e465a960cc51f3276f6627b (patch)
treebd0eb0d51c77d5f9f7ef61a060ce78452375cd08
parent8930337aaec29771b991f2f89f7b7279466278a8 (diff)
downloadopenttd-412cbe133dc0ff0c9e465a960cc51f3276f6627b.tar.xz
(svn r22636) -Fix: Airports should not expose the tile specific random bits of the north tile. Only airport tiles should access those.
-rw-r--r--src/newgrf_airport.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/newgrf_airport.cpp b/src/newgrf_airport.cpp
index 8bf1ff3e8..504c0e26f 100644
--- a/src/newgrf_airport.cpp
+++ b/src/newgrf_airport.cpp
@@ -171,8 +171,7 @@ static const SpriteGroup *AirportResolveReal(const ResolverObject *object, const
static uint32 AirportGetRandomBits(const ResolverObject *object)
{
const Station *st = object->u.airport.st;
- const TileIndex tile = object->u.airport.tile;
- return (st == NULL ? 0 : st->random_bits) | (tile == INVALID_TILE ? 0 : GetStationTileRandomBits(tile) << 16);
+ return st == NULL ? 0 : st->random_bits;
}
static uint32 AirportGetTriggers(const ResolverObject *object)