diff options
author | Jared Adams <jaxad0127@gmail.com> | 2009-02-20 07:32:46 -0700 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2009-02-20 07:33:24 -0700 |
commit | c16086df4022e5c6c9818dbcaf02ffeb6d6684d7 (patch) | |
tree | 841111bf4146dd9ce2d8efed6b41a58905cf1c42 /src/gui | |
parent | 1713f33dbd71b6378c8a4e58452fb16147f320d7 (diff) | |
download | mana-c16086df4022e5c6c9818dbcaf02ffeb6d6684d7.tar.gz mana-c16086df4022e5c6c9818dbcaf02ffeb6d6684d7.tar.bz2 mana-c16086df4022e5c6c9818dbcaf02ffeb6d6684d7.tar.xz mana-c16086df4022e5c6c9818dbcaf02ffeb6d6684d7.zip |
Restore old middle click behavior
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/viewport.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/viewport.cpp b/src/gui/viewport.cpp index a1a02e1e..1ac82281 100644 --- a/src/gui/viewport.cpp +++ b/src/gui/viewport.cpp @@ -336,7 +336,8 @@ void Viewport::mousePressed(gcn::MouseEvent &event) else if (event.getButton() == gcn::MouseEvent::MIDDLE) { // Find the being nearest to the clicked position - Being *target = beingManager->findBeingByPixel(x, y); + Being *target = beingManager->findNearestLivingBeing(tilex, tiley, 20, + Being::MONSTER); if (target) { |