From 766d67f512b86602993e9af1bd0d30f365262643 Mon Sep 17 00:00:00 2001 From: rubidium Date: Wed, 9 Feb 2011 20:45:07 +0000 Subject: [PATCH] (svn r22043) -Fix: invalidate the right windows when a part of a train is flipped in the depot --- src/train_cmd.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/train_cmd.cpp b/src/train_cmd.cpp index 9746fd4031..fd0abdc284 100644 --- a/src/train_cmd.cpp +++ b/src/train_cmd.cpp @@ -1806,11 +1806,11 @@ CommandCost CmdReverseTrainDirection(TileIndex tile, DoCommandFlag flags, uint32 if (flags & DC_EXEC) { ToggleBit(v->flags, VRF_REVERSE_DIRECTION); - SetWindowDirty(WC_VEHICLE_DEPOT, v->tile); - SetWindowDirty(WC_VEHICLE_DETAILS, v->index); - /* We cancel any 'skip signal at dangers' here */ - v->force_proceed = TFP_NONE; - SetWindowDirty(WC_VEHICLE_VIEW, v->index); + + SetWindowDirty(WC_VEHICLE_DEPOT, front->tile); + SetWindowDirty(WC_VEHICLE_DETAILS, front->index); + SetWindowDirty(WC_VEHICLE_VIEW, front->index); + SetWindowClassesDirty(WC_TRAINS_LIST); } } else { /* turn the whole train around */