(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 bbce4fba25
commit 7fa4d576ca
6 changed files with 9 additions and 0 deletions

View File

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