# HG changeset patch # User peter1138 # Date 2006-10-15 20:46:10 # Node ID 70471bc4e9934add76f38ef5ef19b32978a3c4e4 # Parent 00332ec5d2450ac8c9a619e11fcd163ab262203c (svn r6782) - Fix (r3947): Invalidate depot & vehicle windows when reversing a single engine with ctrl-click. diff --git a/train_cmd.c b/train_cmd.c --- a/train_cmd.c +++ b/train_cmd.c @@ -1732,6 +1732,8 @@ int32 CmdReverseTrainDirection(TileIndex 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