diff options
author | yexo <yexo@openttd.org> | 2010-09-01 23:14:15 +0000 |
---|---|---|
committer | yexo <yexo@openttd.org> | 2010-09-01 23:14:15 +0000 |
commit | c07fdab16c4a89dda13efa72fdb5c081872de1ce (patch) | |
tree | 04c6eae1387ef0eed4c27d4a5d264ec6c5c85a1a /src/misc_gui.cpp | |
parent | e640373475375d2bd2f5f4215b0d58b7002175f7 (diff) | |
download | openttd-c07fdab16c4a89dda13efa72fdb5c081872de1ce.tar.xz |
(svn r20716) -Feature: add airport class and airport name to the land info tool
Diffstat (limited to 'src/misc_gui.cpp')
-rw-r--r-- | src/misc_gui.cpp | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/src/misc_gui.cpp b/src/misc_gui.cpp index bf9f79c10..50fa127fc 100644 --- a/src/misc_gui.cpp +++ b/src/misc_gui.cpp @@ -149,6 +149,8 @@ public: td.station_class = STR_NULL; td.station_name = STR_NULL; + td.airport_class = STR_NULL; + td.airport_name = STR_NULL; td.airport_tile_name = STR_NULL; td.rail_speed = 0; @@ -237,7 +239,21 @@ public: line_nr++; } - /* Station type name */ + /* Airport class */ + if (td.airport_class != STR_NULL) { + SetDParam(0, td.airport_class); + GetString(this->landinfo_data[line_nr], STR_LAND_AREA_INFORMATION_AIRPORT_CLASS, lastof(this->landinfo_data[line_nr])); + line_nr++; + } + + /* Airport name */ + if (td.airport_name != STR_NULL) { + SetDParam(0, td.airport_name); + GetString(this->landinfo_data[line_nr], STR_LAND_AREA_INFORMATION_AIRPORT_NAME, lastof(this->landinfo_data[line_nr])); + line_nr++; + } + + /* Airport tile 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])); |