mirror of https://github.com/OpenTTD/OpenTTD.git
(svn r6782) - Fix (r3947): Invalidate depot & vehicle windows when reversing a single engine with ctrl-click.
This commit is contained in:
parent
4c1423fc38
commit
a01ae2bafe
|
@ -1732,6 +1732,8 @@ int32 CmdReverseTrainDirection(TileIndex tile, uint32 flags, uint32 p1, uint32 p
|
|||
|
||||
if (flags & DC_EXEC) {
|
||||
TOGGLEBIT(v->u.rail.flags, VRF_REVERSE_DIRECTION);
|
||||
InvalidateWindow(WC_VEHICLE_DEPOT, v->tile);
|
||||
InvalidateWindow(WC_VEHICLE_DETAILS, v->index);
|
||||
}
|
||||
} else {
|
||||
//turn the whole train around
|
||||
|
|
Loading…
Reference in New Issue