Mercurial > hg > openttd
changeset 17845:178f1e9c0277 draft
(svn r22636) -Fix: Airports should not expose the tile specific random bits of the north tile. Only airport tiles should access those.
author | frosch <frosch@openttd.org> |
---|---|
date | Mon, 04 Jul 2011 22:07:53 +0000 |
parents | 91d7b400b453 |
children | 9783841ee5db |
files | src/newgrf_airport.cpp |
diffstat | 1 files changed, 1 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/newgrf_airport.cpp +++ b/src/newgrf_airport.cpp @@ -171,8 +171,7 @@ 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)