(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 80982cc91b
commit 86fc08789d
8 changed files with 39 additions and 9 deletions

View File

@@ -157,6 +157,7 @@ public:
td.station_class = STR_NULL;
td.station_name = STR_NULL;
td.airport_tile_name = STR_NULL;
td.grf = NULL;
@@ -243,6 +244,13 @@ public:
line_nr++;
}
/* Station type name */
if (td.airport_tile_name != STR_NULL) {
SetDParam(0, td.airport_tile_name);
GetString(this->landinfo_data[line_nr], STR_LAND_AREA_INFORMATION_AIRPORTTILE_NAME, lastof(this->landinfo_data[line_nr]));
line_nr++;
}
/* NewGRF name */
if (td.grf != NULL) {
SetDParamStr(0, td.grf);