summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2006-10-15 20:46:10 +0000
committerpeter1138 <peter1138@openttd.org>2006-10-15 20:46:10 +0000
commita01ae2bafe1c02da3e53fb6195578e1620129292 (patch)
treec703a6b04736be78c01d878a26a8b4d3d5ea3350
parent4c1423fc381cafd01f443d77dc70efcde685132c (diff)
downloadopenttd-a01ae2bafe1c02da3e53fb6195578e1620129292.tar.xz
(svn r6782) - Fix (r3947): Invalidate depot & vehicle windows when reversing a single engine with ctrl-click.
-rw-r--r--train_cmd.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/train_cmd.c b/train_cmd.c
index 3a1594c22..4ae854bba 100644
--- a/train_cmd.c
+++ b/train_cmd.c
@@ -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