summaryrefslogtreecommitdiff
path: root/src/gui/viewport.cpp
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2009-02-20 07:32:46 -0700
committerJared Adams <jaxad0127@gmail.com>2009-02-20 07:33:24 -0700
commitc16086df4022e5c6c9818dbcaf02ffeb6d6684d7 (patch)
tree841111bf4146dd9ce2d8efed6b41a58905cf1c42 /src/gui/viewport.cpp
parent1713f33dbd71b6378c8a4e58452fb16147f320d7 (diff)
downloadMana-c16086df4022e5c6c9818dbcaf02ffeb6d6684d7.tar.gz
Mana-c16086df4022e5c6c9818dbcaf02ffeb6d6684d7.tar.bz2
Mana-c16086df4022e5c6c9818dbcaf02ffeb6d6684d7.tar.xz
Mana-c16086df4022e5c6c9818dbcaf02ffeb6d6684d7.zip
Restore old middle click behavior
Diffstat (limited to 'src/gui/viewport.cpp')
-rw-r--r--src/gui/viewport.cpp3
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)
{