diff options
author | David Athay <ko2fan@gmail.com> | 2008-04-15 16:10:32 +0000 |
---|---|---|
committer | David Athay <ko2fan@gmail.com> | 2008-04-15 16:10:32 +0000 |
commit | 2aae7dcba5b240674a76e0d85dbf64cede1d478b (patch) | |
tree | 205327e5a65f8d8088004fac133d329eec95666e | |
parent | ae80df26873baa8d1f9b2994f961364318fd4fd8 (diff) | |
download | mana-2aae7dcba5b240674a76e0d85dbf64cede1d478b.tar.gz mana-2aae7dcba5b240674a76e0d85dbf64cede1d478b.tar.bz2 mana-2aae7dcba5b240674a76e0d85dbf64cede1d478b.tar.xz mana-2aae7dcba5b240674a76e0d85dbf64cede1d478b.zip |
Fixed clicking near player.
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | src/beingmanager.cpp | 1 | ||||
-rw-r--r-- | src/gui/viewport.cpp | 2 | ||||
-rw-r--r-- | tmw.cbp | 2 |
4 files changed, 7 insertions, 3 deletions
@@ -1,3 +1,8 @@ +2008-04-15 David Athay <ko2fan@gmail.com> + + * src/gui/viewport.cpp, src/beingmanager.cpp, tmw.cbp: Fixed clicking + near player. + 2008-04-14 Dennis Friis <peavey@placid.dk> * src/gui/chat.cpp: Tweaked /whisper command to allow quoting of nicks 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) && diff --git a/src/gui/viewport.cpp b/src/gui/viewport.cpp index d53204b6..f2e32973 100644 --- a/src/gui/viewport.cpp +++ b/src/gui/viewport.cpp @@ -413,8 +413,6 @@ Viewport::mousePressed(gcn::MouseEvent &event) case Being::PLAYER: if (being->mAction == Being::DEAD) break; - if (being == player_node) - break; if (player_node->withinAttackRange(being)) { @@ -334,7 +334,7 @@ <Unit filename="src/tileset.h" /> <Unit filename="src/tmw.rc"> <Option compilerVar="WINDRES" /> - <Option target="unix" /> + <Option target="<{~None~}>" /> </Unit> <Unit filename="src/utils/base64.cpp" /> <Unit filename="src/utils/base64.h" /> |