mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-11 13:10:45 +00:00
(svn r22636) -Fix: Airports should not expose the tile specific random bits of the north tile. Only airport tiles should access those.
This commit is contained in:
parent
0f8065fef4
commit
a712f23cc8
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user