From 06dc421f2ab025aa248a372d48c5701d7a9e2ff9 Mon Sep 17 00:00:00 2001 From: yexo Date: Mon, 22 Feb 2010 14:17:17 +0000 Subject: (svn r19199) -Codechange: add a 'name'-property to airport tiles --- src/misc_gui.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/misc_gui.cpp') diff --git a/src/misc_gui.cpp b/src/misc_gui.cpp index f33556a85..c456394f6 100644 --- a/src/misc_gui.cpp +++ b/src/misc_gui.cpp @@ -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); -- cgit v1.2.3-54-g00ecf