# HG changeset patch # User frosch # Date 2011-07-04 22:07:53 # Node ID f631401e690d27985d04e9fae28375c4457fea4d # Parent 447b5cb3ee1ab00bd907130e9f1e42c53794993c (svn r22636) -Fix: Airports should not expose the tile specific random bits of the north tile. Only airport tiles should access those. diff --git a/src/newgrf_airport.cpp b/src/newgrf_airport.cpp --- a/src/newgrf_airport.cpp +++ b/src/newgrf_airport.cpp @@ -171,8 +171,7 @@ static const SpriteGroup *AirportResolve 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)