(svn r22044) -Fix [FS#4493]: update the consist cache when a part of a train is flipped in the depot

This commit is contained in:
rubidium 2011-02-09 20:45:40 +00:00
parent 15514a3011
commit dda7b60a57
1 changed files with 1 additions and 0 deletions

View File

@ -1807,6 +1807,7 @@ CommandCost CmdReverseTrainDirection(TileIndex tile, DoCommandFlag flags, uint32
if (flags & DC_EXEC) {
ToggleBit(v->flags, VRF_REVERSE_DIRECTION);
front->ConsistChanged(false);
SetWindowDirty(WC_VEHICLE_DEPOT, front->tile);
SetWindowDirty(WC_VEHICLE_DETAILS, front->index);
SetWindowDirty(WC_VEHICLE_VIEW, front->index);