(svn r20625) -Add: AirportTileSpec::GetByTile to simplify accessing the AirportTileSpec

This commit is contained in:
rubidium
2010-08-26 16:53:06 +00:00
parent 9982b5fd00
commit 82ef98a90a
3 changed files with 12 additions and 1 deletions

View File

@@ -2807,7 +2807,7 @@ static void GetTileDesc_Station(TileIndex tile, TileDesc *td)
}
if (IsAirport(tile)) {
const AirportTileSpec *ats = AirportTileSpec::Get(GetAirportGfx(tile));
const AirportTileSpec *ats = AirportTileSpec::GetByTile(tile);
td->airport_tile_name = ats->name;
if (ats->grf_prop.grffile != NULL) {