diff options
author | frosch <frosch@openttd.org> | 2009-09-20 19:36:27 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2009-09-20 19:36:27 +0000 |
commit | 7fa4d576ca0077d45957590d25769f4fde2b2320 (patch) | |
tree | e61e9cfa2d9fd7d8b2e87869d4382fcedf126647 /src/vehicle.cpp | |
parent | bbce4fba25108c929df5689da0af896828d95fa4 (diff) | |
download | openttd-7fa4d576ca0077d45957590d25769f4fde2b2320.tar.xz |
(svn r17594) -Fix: Vehicle image was not always updated when needed.
Diffstat (limited to 'src/vehicle.cpp')
-rw-r--r-- | src/vehicle.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/vehicle.cpp b/src/vehicle.cpp index 7596d4d7b..ce94c71c9 100644 --- a/src/vehicle.cpp +++ b/src/vehicle.cpp @@ -1645,6 +1645,7 @@ void StopAllVehicles() /* Code ripped from CmdStartStopTrain. Can't call it, because of * ownership problems, so we'll duplicate some code, for now */ v->vehstatus |= VS_STOPPED; + v->MarkDirty(); SetWindowWidgetDirty(WC_VEHICLE_VIEW, v->index, VVW_WIDGET_START_STOP_VEH); SetWindowDirty(WC_VEHICLE_DEPOT, v->tile); } |