(svn r17594) -Fix: Vehicle image was not always updated when needed.

This commit is contained in:
frosch
2009-09-20 19:36:27 +00:00
parent d53eab6052
commit 1192ed4c2d
6 changed files with 9 additions and 0 deletions

View File

@@ -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);
}