Mercurial > hg > openttd
changeset 16066:a49f518668dd draft
(svn r20759) -Fix (r20753): it wasn't possible to build anything when left button scrolling was active
author | smatz <smatz@openttd.org> |
---|---|
date | Tue, 07 Sep 2010 11:00:42 +0000 |
parents | e11bb68f2fa6 |
children | e8e9ee785788 |
files | src/viewport.cpp src/window.cpp |
diffstat | 2 files changed, 4 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/viewport.cpp +++ b/src/viewport.cpp @@ -1811,7 +1811,10 @@ 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;