summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2010-09-07 11:00:42 +0000
committersmatz <smatz@openttd.org>2010-09-07 11:00:42 +0000
commita282c3ab57a0de7a3551054ab7f7321ba038dc20 (patch)
tree7b8398f3ec1407a27f2cc3301dc3edf8a3dd3244 /src
parent82949024f18811120bfc35da04fbd4b22f7f1d45 (diff)
downloadopenttd-a282c3ab57a0de7a3551054ab7f7321ba038dc20.tar.xz
(svn r20759) -Fix (r20753): it wasn't possible to build anything when left button scrolling was active
Diffstat (limited to 'src')
-rw-r--r--src/viewport.cpp5
-rw-r--r--src/window.cpp2
2 files changed, 4 insertions, 3 deletions
diff --git a/src/viewport.cpp b/src/viewport.cpp
index ef6a2761d..451d87110 100644
--- a/src/viewport.cpp
+++ b/src/viewport.cpp
@@ -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;
diff --git a/src/window.cpp b/src/window.cpp
index 7ef758a63..49039ec15 100644
--- a/src/window.cpp
+++ b/src/window.cpp
@@ -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;