(svn r17594) -Fix: Vehicle image was not always updated when needed.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user