summaryrefslogtreecommitdiff
path: root/src/vehicle_gui.cpp
diff options
context:
space:
mode:
authorbelugas <belugas@openttd.org>2008-08-24 01:39:56 +0000
committerbelugas <belugas@openttd.org>2008-08-24 01:39:56 +0000
commit14bc2b5d4f5d3ed83fc5410828b8853ff0afa15e (patch)
tree33a8bcb60fb689d3b69adf7ad7ec591f4fdebc7c /src/vehicle_gui.cpp
parent6aeeeb9012cd4f8d69d0337c930a38c9eb351786 (diff)
downloadopenttd-14bc2b5d4f5d3ed83fc5410828b8853ff0afa15e.tar.xz
(svn r14150) -Add: Add the count of trains using the current waypoint in the vehicle list window's caption
Diffstat (limited to 'src/vehicle_gui.cpp')
-rw-r--r--src/vehicle_gui.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/vehicle_gui.cpp b/src/vehicle_gui.cpp
index 821b15413..60f7b85a3 100644
--- a/src/vehicle_gui.cpp
+++ b/src/vehicle_gui.cpp
@@ -801,7 +801,7 @@ struct VehicleListWindow : public Window, public VehicleListBase {
break;
case VLW_WAYPOINT_LIST:
- this->widget[VLW_WIDGET_CAPTION].data = STR_WAYPOINT_VIEWPORT;
+ this->widget[VLW_WIDGET_CAPTION].data = STR_WAYPOINT_VIEWPORT_LIST;
break;
case VLW_STATION_LIST: /* Station Name */
@@ -903,6 +903,7 @@ struct VehicleListWindow : public Window, public VehicleListBase {
case VLW_WAYPOINT_LIST:
SetDParam(0, index);
+ SetDParam(1, this->vscroll.count);
break;
case VLW_STATION_LIST: /* Station Name */