Fixed road tunnel preview not shown when dragging mouse

This commit is contained in:
pelya
2014-11-16 17:12:12 +02:00
parent bb8e38c70f
commit c0c98b562a

View File

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