summaryrefslogtreecommitdiff
path: root/src/gui/gui.cpp
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2006-09-09 18:34:41 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2006-09-09 18:34:41 +0000
commit89be648c4f5292dc22eb774afda599d48626f1d8 (patch)
treee2446cced31dd8ff615a5d0da3b88df71f324821 /src/gui/gui.cpp
parent2b99e70a462ce87d643c19a0c48c812ad6c98d67 (diff)
downloadmana-89be648c4f5292dc22eb774afda599d48626f1d8.tar.gz
mana-89be648c4f5292dc22eb774afda599d48626f1d8.tar.bz2
mana-89be648c4f5292dc22eb774afda599d48626f1d8.tar.xz
mana-89be648c4f5292dc22eb774afda599d48626f1d8.zip
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.
Diffstat (limited to 'src/gui/gui.cpp')
-rw-r--r--src/gui/gui.cpp5
1 files changed, 3 insertions, 2 deletions
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())
{