summaryrefslogtreecommitdiff
path: root/src/beingmanager.cpp
diff options
context:
space:
mode:
authorGuillaume Melquiond <guillaume.melquiond@gmail.com>2006-08-27 11:21:10 +0000
committerGuillaume Melquiond <guillaume.melquiond@gmail.com>2006-08-27 11:21:10 +0000
commitd3cba1c4beac4a1c98f38bbca076a98f9c90bbc4 (patch)
treee7d1ea0a7575d0dd28802e7dfe2a322e818729fc /src/beingmanager.cpp
parent5980dba7ace73e6587b9966bc2076ad2b2eaa5f0 (diff)
downloadmana-d3cba1c4beac4a1c98f38bbca076a98f9c90bbc4.tar.gz
mana-d3cba1c4beac4a1c98f38bbca076a98f9c90bbc4.tar.bz2
mana-d3cba1c4beac4a1c98f38bbca076a98f9c90bbc4.tar.xz
mana-d3cba1c4beac4a1c98f38bbca076a98f9c90bbc4.zip
Changed to pixel-based coordinates for beings.
Diffstat (limited to 'src/beingmanager.cpp')
-rw-r--r--src/beingmanager.cpp4
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));
}