mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-24 15:09:10 +00:00
(svn r6782) - Fix (r3947): Invalidate depot & vehicle windows when reversing a single engine with ctrl-click.
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user