(svn r6782) - Fix (r3947): Invalidate depot & vehicle windows when reversing a single engine with ctrl-click.

This commit is contained in:
peter1138 2006-10-15 20:46:10 +00:00
parent 4c1423fc38
commit a01ae2bafe
1 changed files with 2 additions and 0 deletions

View File

@ -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