From c0c98b562ad53b5fa754fa75eafc0b99747ef09f Mon Sep 17 00:00:00 2001 From: pelya Date: Sun, 16 Nov 2014 17:12:12 +0200 Subject: [PATCH] Fixed road tunnel preview not shown when dragging mouse --- src/road_gui.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/road_gui.cpp b/src/road_gui.cpp index c82bf54f91..90818f42ef 100644 --- a/src/road_gui.cpp +++ b/src/road_gui.cpp @@ -546,6 +546,11 @@ struct BuildRoadToolbarWindow : Window { virtual void OnPlaceDrag(ViewportPlaceMethod select_method, ViewportDragDropSelectionProcess select_proc, Point pt) { + if (this->last_started_action == WID_ROT_BUILD_TUNNEL) { + this->OnPlacePresize(pt, TileVirtXY(pt.x, pt.y)); + return; + } + /* Here we update the end tile flags * of the road placement actions. * At first we reset the end halfroad