Changeset - r14621:48ae65e75083
[Not reviewed]
master
0 1 0
yexo - 15 years ago 2010-02-22 16:32:50
yexo@openttd.org
(svn r19208) -Codechange: fix a gcc warning
1 file changed with 3 insertions and 2 deletions:
0 comments (0 inline, 0 general)
src/newgrf_airporttiles.cpp
Show inline comments
 
@@ -41,7 +41,9 @@ AirportTileOverrideManager _airporttile_
 
 */
 
/* static */ const AirportTileSpec *AirportTileSpec::Get(StationGfx gfx)
 
{
 
	assert((size_t)gfx < lengthof(AirportTileSpec::tiles));
 
	/* should be assert(gfx < lengthof(tiles)), but that gives compiler warnings
 
	 * since it's always true if the following holds: */
 
	assert_compile(MAX_UVALUE(StationGfx) + 1 == lengthof(tiles));
 
	return &AirportTileSpec::tiles[gfx];
 
}
 

	
 
@@ -88,7 +90,6 @@ void AirportTileOverrideManager::SetEnti
 
 */
 
StationGfx GetTranslatedAirportTileID(StationGfx gfx)
 
{
 
	assert((size_t)gfx < NUM_AIRPORTTILES);
 
	const AirportTileSpec *it = AirportTileSpec::Get(gfx);
 
	return it->grf_prop.override == INVALID_AIRPORTTILE ? gfx : it->grf_prop.override;
 
}
0 comments (0 inline, 0 general)