diff options
author | yexo <yexo@openttd.org> | 2010-02-22 14:17:17 +0000 |
---|---|---|
committer | yexo <yexo@openttd.org> | 2010-02-22 14:17:17 +0000 |
commit | 06dc421f2ab025aa248a372d48c5701d7a9e2ff9 (patch) | |
tree | 7542a38804ee09694b5ea606a7a74a861c1375b5 /src/misc_gui.cpp | |
parent | 698737f485cfbdd1605faecd50395bb67f7dac75 (diff) | |
download | openttd-06dc421f2ab025aa248a372d48c5701d7a9e2ff9.tar.xz |
(svn r19199) -Codechange: add a 'name'-property to airport tiles
Diffstat (limited to 'src/misc_gui.cpp')
-rw-r--r-- | src/misc_gui.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
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); |