mirror of https://github.com/OpenTTD/OpenTTD.git
(svn r20759) -Fix (r20753): it wasn't possible to build anything when left button scrolling was active
This commit is contained in:
parent
82949024f1
commit
a282c3ab57
|
@ -1811,7 +1811,10 @@ bool HandleViewportClicked(const ViewPort *vp, int x, int y)
|
|||
if (v != NULL && VehicleClicked(v)) return true;
|
||||
}
|
||||
|
||||
if (_thd.place_mode & HT_DRAG_MASK) return false;
|
||||
if (_thd.place_mode & HT_DRAG_MASK) {
|
||||
PlaceObject();
|
||||
return true;
|
||||
}
|
||||
|
||||
if (CheckClickOnTown(vp, x, y)) return true;
|
||||
if (CheckClickOnStation(vp, x, y)) return true;
|
||||
|
|
|
@ -2209,8 +2209,6 @@ static void MouseLoop(MouseClick click, int mousewheel)
|
|||
_settings_client.gui.left_mouse_btn_scrolling) {
|
||||
_scrolling_viewport = true;
|
||||
_cursor.fix_at = false;
|
||||
} else {
|
||||
PlaceObject();
|
||||
}
|
||||
break;
|
||||
|
||||
|
|
Loading…
Reference in New Issue