mirror of https://github.com/OpenTTD/OpenTTD.git
(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:
parent
15514a3011
commit
dda7b60a57
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue