summaryrefslogtreecommitdiff
path: root/train_cmd.c
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
commit93c7076fd821f495a6a86ffeae52e609361de55f (patch)
treec703a6b04736be78c01d878a26a8b4d3d5ea3350 /train_cmd.c
parentf47a13dfa771228c7b32c196f4b2dc217b58a8a5 (diff)
downloadopenttd-93c7076fd821f495a6a86ffeae52e609361de55f.tar.xz
(svn r6782) - Fix (r3947): Invalidate depot & vehicle windows when reversing a single engine with ctrl-click.
Diffstat (limited to 'train_cmd.c')
-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