(svn r20625) -Add: AirportTileSpec::GetByTile to simplify accessing the AirportTileSpec
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user