From a712f23cc816fb2792c30c3944c4becdeabf24d0 Mon Sep 17 00:00:00 2001 From: frosch Date: Mon, 4 Jul 2011 22:07:53 +0000 Subject: [PATCH] (svn r22636) -Fix: Airports should not expose the tile specific random bits of the north tile. Only airport tiles should access those. --- src/newgrf_airport.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/newgrf_airport.cpp b/src/newgrf_airport.cpp index 8bf1ff3e8e..504c0e26fa 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)