diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2006-09-09 18:34:41 +0000 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2006-09-09 18:34:41 +0000 |
commit | 89be648c4f5292dc22eb774afda599d48626f1d8 (patch) | |
tree | e2446cced31dd8ff615a5d0da3b88df71f324821 /src | |
parent | 2b99e70a462ce87d643c19a0c48c812ad6c98d67 (diff) | |
download | mana-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')
-rw-r--r-- | src/gui/gui.cpp | 5 |
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()) { |