mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-09 23:50:25 +00:00
(svn r22043) -Fix: invalidate the right windows when a part of a train is flipped in the depot
This commit is contained in:
parent
69789f3008
commit
15514a3011
@ -1806,11 +1806,11 @@ CommandCost CmdReverseTrainDirection(TileIndex tile, DoCommandFlag flags, uint32
|
||||
|
||||
if (flags & DC_EXEC) {
|
||||
ToggleBit(v->flags, VRF_REVERSE_DIRECTION);
|
||||
SetWindowDirty(WC_VEHICLE_DEPOT, v->tile);
|
||||
SetWindowDirty(WC_VEHICLE_DETAILS, v->index);
|
||||
/* We cancel any 'skip signal at dangers' here */
|
||||
v->force_proceed = TFP_NONE;
|
||||
SetWindowDirty(WC_VEHICLE_VIEW, v->index);
|
||||
|
||||
SetWindowDirty(WC_VEHICLE_DEPOT, front->tile);
|
||||
SetWindowDirty(WC_VEHICLE_DETAILS, front->index);
|
||||
SetWindowDirty(WC_VEHICLE_VIEW, front->index);
|
||||
SetWindowClassesDirty(WC_TRAINS_LIST);
|
||||
}
|
||||
} else {
|
||||
/* turn the whole train around */
|
||||
|
Loading…
Reference in New Issue
Block a user