summaryrefslogtreecommitdiff
path: root/src/vehicle_cmd.cpp
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2009-09-20 19:36:27 +0000
committerfrosch <frosch@openttd.org>2009-09-20 19:36:27 +0000
commit7fa4d576ca0077d45957590d25769f4fde2b2320 (patch)
treee61e9cfa2d9fd7d8b2e87869d4382fcedf126647 /src/vehicle_cmd.cpp
parentbbce4fba25108c929df5689da0af896828d95fa4 (diff)
downloadopenttd-7fa4d576ca0077d45957590d25769f4fde2b2320.tar.xz
(svn r17594) -Fix: Vehicle image was not always updated when needed.
Diffstat (limited to 'src/vehicle_cmd.cpp')
-rw-r--r--src/vehicle_cmd.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/vehicle_cmd.cpp b/src/vehicle_cmd.cpp
index c6f5f1750..9f1de3c44 100644
--- a/src/vehicle_cmd.cpp
+++ b/src/vehicle_cmd.cpp
@@ -107,6 +107,7 @@ CommandCost CmdStartStopVehicle(TileIndex tile, DoCommandFlag flags, uint32 p1,
v->vehstatus ^= VS_STOPPED;
if (v->type != VEH_TRAIN) v->cur_speed = 0; // trains can stop 'slowly'
+ v->MarkDirty();
SetWindowWidgetDirty(WC_VEHICLE_VIEW, v->index, VVW_WIDGET_START_STOP_VEH);
SetWindowDirty(WC_VEHICLE_DEPOT, v->tile);
SetWindowClassesDirty(GetWindowClassForVehicleType(v->type));