From 93c7076fd821f495a6a86ffeae52e609361de55f Mon Sep 17 00:00:00 2001 From: peter1138 Date: Sun, 15 Oct 2006 20:46:10 +0000 Subject: [PATCH] (svn r6782) - Fix (r3947): Invalidate depot & vehicle windows when reversing a single engine with ctrl-click. --- train_cmd.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/train_cmd.c b/train_cmd.c index 3a1594c22e..4ae854bba1 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