From c16086df4022e5c6c9818dbcaf02ffeb6d6684d7 Mon Sep 17 00:00:00 2001 From: Jared Adams Date: Fri, 20 Feb 2009 07:32:46 -0700 Subject: Restore old middle click behavior --- src/gui/viewport.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/gui/viewport.cpp') 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) { -- cgit v1.2.3-70-g09d2