summaryrefslogtreecommitdiff
path: root/src/beingmanager.cpp
diff options
context:
space:
mode:
authorDavid Athay <ko2fan@gmail.com>2008-04-15 16:10:32 +0000
committerDavid Athay <ko2fan@gmail.com>2008-04-15 16:10:32 +0000
commit2aae7dcba5b240674a76e0d85dbf64cede1d478b (patch)
tree205327e5a65f8d8088004fac133d329eec95666e /src/beingmanager.cpp
parentae80df26873baa8d1f9b2994f961364318fd4fd8 (diff)
downloadmana-2aae7dcba5b240674a76e0d85dbf64cede1d478b.tar.gz
mana-2aae7dcba5b240674a76e0d85dbf64cede1d478b.tar.bz2
mana-2aae7dcba5b240674a76e0d85dbf64cede1d478b.tar.xz
mana-2aae7dcba5b240674a76e0d85dbf64cede1d478b.zip
Fixed clicking near player.
Diffstat (limited to 'src/beingmanager.cpp')
-rw-r--r--src/beingmanager.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/beingmanager.cpp b/src/beingmanager.cpp
index 4e3ab0fa..0619bfc2 100644
--- a/src/beingmanager.cpp
+++ b/src/beingmanager.cpp
@@ -133,6 +133,7 @@ Being* BeingManager::findBeingByPixel(Uint16 x, Uint16 y)
{
Being *being = (*itr);
if ((being->mAction != Being::DEAD) &&
+ (being != player_node) &&
(being->getPixelX() <= x) &&
(being->getPixelX() + being->getWidth() >= x) &&
(being->getPixelY() <= y) &&