(svn r19199) -Codechange: add a 'name'-property to airport tiles

This commit is contained in:
yexo
2010-02-22 14:17:17 +00:00
parent 698737f485
commit 06dc421f2a
8 changed files with 39 additions and 9 deletions

View File

@@ -2643,6 +2643,16 @@ static void GetTileDesc_Station(TileIndex tile, TileDesc *td)
}
}
if (IsAirport(tile)) {
const AirportTileSpec *ats = AirportTileSpec::Get(GetAirportGfx(tile));
td->airport_tile_name = ats->name;
if (ats->grf_prop.grffile != NULL) {
const GRFConfig *gc = GetGRFConfig(ats->grf_prop.grffile->grfid);
td->grf = gc->name;
}
}
StringID str;
switch (GetStationType(tile)) {
default: NOT_REACHED();