(svn r19195) -Codechange: actually draw newgrf airport tiles
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user