Fixed road tunnel preview not shown when dragging mouse
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user