(svn r19195) -Codechange: actually draw newgrf airport tiles

This commit is contained in:
yexo
2010-02-22 14:16:41 +00:00
parent 80fb5c70c8
commit 880fedc192
7 changed files with 272 additions and 2 deletions

View File

@@ -262,6 +262,19 @@ static inline bool IsDriveThroughStopTile(TileIndex t)
return IsRoadStopTile(t) && GetStationGfx(t) >= GFX_TRUCK_BUS_DRIVETHROUGH_OFFSET;
}
/**
* Get the station graphics of this airport tile
* @param t the tile to query
* @pre IsAirport(t)
* @return the station graphics
*/
static inline StationGfx GetAirportGfx(TileIndex t)
{
assert(IsAirport(t));
extern StationGfx GetTranslatedAirportTileID(StationGfx gfx);
return GetTranslatedAirportTileID(GetStationGfx(t));
}
/**
* Gets the direction the road stop entrance points towards.
* @param t the tile of the road stop