Changeset - r17835:f631401e690d
[Not reviewed]
master
0 1 0
frosch - 13 years ago 2011-07-04 22:07:53
frosch@openttd.org
(svn r22636) -Fix: Airports should not expose the tile specific random bits of the north tile. Only airport tiles should access those.
1 file changed with 1 insertions and 2 deletions:
0 comments (0 inline, 0 general)
src/newgrf_airport.cpp
Show inline comments
 
@@ -162,26 +162,25 @@ static const SpriteGroup *AirportResolve
 
{
 
	/* Airport action 2s should always have only 1 "loaded" state, but some
 
	 * times things don't follow the spec... */
 
	if (group->num_loaded > 0) return group->loaded[0];
 
	if (group->num_loading > 0) return group->loading[0];
 

	
 
	return NULL;
 
}
 

	
 
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)
 
{
 
	return 0;
 
}
 

	
 
static void AirportSetTriggers(const ResolverObject *object, int triggers)
 
{
 
}
 

	
 
/**
0 comments (0 inline, 0 general)