Changeset - r14616:85f59b4f8898
[Not reviewed]
master
0 2 0
smatz - 14 years ago 2010-02-22 16:02:37
smatz@openttd.org
(svn r19203) -Codechange: silence some gcc warnings
2 files changed with 2 insertions and 5 deletions:
0 comments (0 inline, 0 general)
src/newgrf_airporttiles.cpp
Show inline comments
 
@@ -41,7 +41,7 @@ AirportTileOverrideManager _airporttile_
 
 */
 
/* static */ const AirportTileSpec *AirportTileSpec::Get(StationGfx gfx)
 
{
 
	assert(gfx < lengthof(AirportTileSpec::tiles));
 
	assert((size_t)gfx < lengthof(AirportTileSpec::tiles));
 
	return &AirportTileSpec::tiles[gfx];
 
}
 

	
 
@@ -88,7 +88,7 @@ void AirportTileOverrideManager::SetEnti
 
 */
 
StationGfx GetTranslatedAirportTileID(StationGfx gfx)
 
{
 
	assert(gfx < NUM_AIRPORTTILES);
 
	assert((size_t)gfx < NUM_AIRPORTTILES);
 
	const AirportTileSpec *it = AirportTileSpec::Get(gfx);
 
	return it->grf_prop.override == INVALID_AIRPORTTILE ? gfx : it->grf_prop.override;
 
}
 
@@ -400,8 +400,6 @@ void AirportAnimationTrigger(Station *st
 
{
 
	if (st->airport.tile == INVALID_TILE) return;
 

	
 
	const AirportSpec *as = st->GetAirportSpec();
 

	
 
	TILE_AREA_LOOP(tile, st->airport) {
 
		if (st->TileBelongsToAirport(tile)) AirportTileAnimationTrigger(st, tile, trigger, cargo_type);
 
	}
src/water_cmd.cpp
Show inline comments
 
@@ -726,7 +726,6 @@ static void FloodVehicles(TileIndex tile
 

	
 
	if (IsAirportTile(tile)) {
 
		const Station *st = Station::GetByTile(tile);
 
		const AirportSpec *as = st->GetAirportSpec();
 
		z = 1 + st->Airport()->delta_z;
 
		TILE_AREA_LOOP(tile, st->airport) {
 
			if (st->TileBelongsToAirport(tile)) FindVehicleOnPos(tile, &z, &FloodVehicleProc);
0 comments (0 inline, 0 general)