diff options
author | frosch <frosch@openttd.org> | 2014-01-26 13:50:10 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2014-01-26 13:50:10 +0000 |
commit | f0e7f9982ae72b86f01465155122edddd6c2b463 (patch) | |
tree | 2c2a774b9c31a8408f616f32c46afb888a773bad /src/misc_gui.cpp | |
parent | 95354136be5de6055302fa1b992b86ec40a010c6 (diff) | |
download | openttd-f0e7f9982ae72b86f01465155122edddd6c2b463.tar.xz |
(svn r26277) -Add [FS#5849]: Display speed limit also for road bridges in the TileInfo window.
Diffstat (limited to 'src/misc_gui.cpp')
-rw-r--r-- | src/misc_gui.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/misc_gui.cpp b/src/misc_gui.cpp index d771f92ee..55bef30e3 100644 --- a/src/misc_gui.cpp +++ b/src/misc_gui.cpp @@ -57,7 +57,7 @@ static WindowDesc _land_info_desc( class LandInfoWindow : public Window { enum LandInfoLines { - LAND_INFO_CENTERED_LINES = 12, ///< Up to 12 centered lines + LAND_INFO_CENTERED_LINES = 32, ///< Up to 32 centered lines (arbitrary limit) LAND_INFO_MULTICENTER_LINE = LAND_INFO_CENTERED_LINES, ///< One multicenter line LAND_INFO_LINE_END, }; @@ -159,6 +159,7 @@ public: td.airport_name = STR_NULL; td.airport_tile_name = STR_NULL; td.rail_speed = 0; + td.road_speed = 0; td.grf = NULL; @@ -274,6 +275,13 @@ public: line_nr++; } + /* Road speed limit */ + if (td.road_speed != 0) { + SetDParam(0, td.road_speed); + GetString(this->landinfo_data[line_nr], STR_LANG_AREA_INFORMATION_ROAD_SPEED_LIMIT, lastof(this->landinfo_data[line_nr])); + line_nr++; + } + /* NewGRF name */ if (td.grf != NULL) { SetDParamStr(0, td.grf); |