From 89be648c4f5292dc22eb774afda599d48626f1d8 Mon Sep 17 00:00:00 2001 From: Bjørn Lindeijer Date: Sat, 9 Sep 2006 18:34:41 +0000 Subject: Removed easy targeting functionality since it interferes with walking around too much. Targeting can still be rather conveniently done with 'a' or the middle mouse button. --- src/gui/gui.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/gui/gui.cpp b/src/gui/gui.cpp index 74197a14..d44325d3 100644 --- a/src/gui/gui.cpp +++ b/src/gui/gui.cpp @@ -253,7 +253,8 @@ Gui::mousePress(int mx, int my, int button) Being *being; FloorItem *floorItem; - if ((being = beingManager->findBeing(tilex, tiley)) && being->getType() != Being::LOCALPLAYER) + if ((being = beingManager->findBeing(tilex, tiley)) && + being->getType() != Being::LOCALPLAYER) { showPopup(mx, my, being); return; @@ -280,7 +281,7 @@ Gui::mousePress(int mx, int my, int button) FloorItem *item; // Interact with some being - if ((being = beingManager->findNearestLivingBeing(tilex, tiley, 1))) + if ((being = beingManager->findBeing(tilex, tiley))) { switch (being->getType()) { -- cgit v1.2.3-70-g09d2