summaryrefslogtreecommitdiff
path: root/src/vehicle_gui.cpp
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2009-07-13 19:30:37 +0000
committerfrosch <frosch@openttd.org>2009-07-13 19:30:37 +0000
commit3973b1e7cb5d244374e517879ec9f9017c95446f (patch)
tree7769354c7c21a3e878c093d85b843194e54bb189 /src/vehicle_gui.cpp
parent3922860bb9e69281fdaaa48e2347c666728e18ee (diff)
downloadopenttd-3973b1e7cb5d244374e517879ec9f9017c95446f.tar.xz
(svn r16817) -Codechange: Scroll depots horizontally in pixels instead of 1/8 vehicle length.
Diffstat (limited to 'src/vehicle_gui.cpp')
-rw-r--r--src/vehicle_gui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vehicle_gui.cpp b/src/vehicle_gui.cpp
index 407b563cf..a4fcf8811 100644
--- a/src/vehicle_gui.cpp
+++ b/src/vehicle_gui.cpp
@@ -811,7 +811,7 @@ static void DrawSmallOrderList(const Vehicle *v, int left, int right, int y)
static void DrawVehicleImage(const Vehicle *v, int x, int y, VehicleID selection, int max_width, int skip)
{
switch (v->type) {
- case VEH_TRAIN: DrawTrainImage(v, x, y, selection, max_width, skip); break;
+ case VEH_TRAIN: DrawTrainImage(Train::From(v), x, y, selection, max_width, skip); break;
case VEH_ROAD: DrawRoadVehImage(v, x, y, selection, max_width); break;
case VEH_SHIP: DrawShipImage(v, x, y, selection); break;
case VEH_AIRCRAFT: DrawAircraftImage(v, x, y, selection); break;