diff options
author | Guillaume Melquiond <guillaume.melquiond@gmail.com> | 2006-08-27 11:21:10 +0000 |
---|---|---|
committer | Guillaume Melquiond <guillaume.melquiond@gmail.com> | 2006-08-27 11:21:10 +0000 |
commit | d3cba1c4beac4a1c98f38bbca076a98f9c90bbc4 (patch) | |
tree | e7d1ea0a7575d0dd28802e7dfe2a322e818729fc /src/beingmanager.cpp | |
parent | 5980dba7ace73e6587b9966bc2076ad2b2eaa5f0 (diff) | |
download | mana-client-d3cba1c4beac4a1c98f38bbca076a98f9c90bbc4.tar.gz mana-client-d3cba1c4beac4a1c98f38bbca076a98f9c90bbc4.tar.bz2 mana-client-d3cba1c4beac4a1c98f38bbca076a98f9c90bbc4.tar.xz mana-client-d3cba1c4beac4a1c98f38bbca076a98f9c90bbc4.zip |
Changed to pixel-based coordinates for beings.
Diffstat (limited to 'src/beingmanager.cpp')
-rw-r--r-- | src/beingmanager.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/beingmanager.cpp b/src/beingmanager.cpp index a6c7974d..74709fdf 100644 --- a/src/beingmanager.cpp +++ b/src/beingmanager.cpp @@ -39,8 +39,8 @@ class FindBeingFunctor bool operator() (Being *being) { Uint16 other_y = y + ((being->getType() == Being::NPC) ? 1 : 0); - return (being->mX == x && - (being->mY == y || being->mY == other_y) && + return (being->mX / 32 == x && + (being->mY / 32 == y || being->mY / 32 == other_y) && being->mAction != Being::MONSTER_DEAD && (type == Being::UNKNOWN || being->getType() == type)); } |