diff options
author | frosch <frosch@openttd.org> | 2016-12-09 21:27:22 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2016-12-09 21:27:22 +0000 |
commit | 10293c5fb1b90dcf13847fd07e44534550f1d656 (patch) | |
tree | ef12482ee662c30cd3ce90528a2d647378654d70 /src/misc_gui.cpp | |
parent | acc817b3f5fc1f41044332ba81d5c5f5825fe2e7 (diff) | |
download | openttd-10293c5fb1b90dcf13847fd07e44534550f1d656.tar.xz |
(svn r27686) -Change: List railtype of rail tiles explicitly in the tile info window.
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 b751407e2..2d3871ffb 100644 --- a/src/misc_gui.cpp +++ b/src/misc_gui.cpp @@ -162,6 +162,7 @@ public: td.airport_class = STR_NULL; td.airport_name = STR_NULL; td.airport_tile_name = STR_NULL; + td.railtype = STR_NULL; td.rail_speed = 0; td.road_speed = 0; @@ -272,6 +273,13 @@ public: line_nr++; } + /* Rail type name */ + if (td.railtype != STR_NULL) { + SetDParam(0, td.railtype); + GetString(this->landinfo_data[line_nr], STR_LANG_AREA_INFORMATION_RAIL_TYPE, lastof(this->landinfo_data[line_nr])); + line_nr++; + } + /* Rail speed limit */ if (td.rail_speed != 0) { SetDParam(0, td.rail_speed); |