summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-08-17 22:43:38 +0300
committerAndrei Karas <akaras@inbox.ru>2012-08-17 22:43:38 +0300
commitdac461677c723ec0ae76aa34941be86e20da662f (patch)
tree2ee30f0a504805d0422e9a121401e1518f2de6f1 /src
parentc6c4eef4e49bb4de90845408af9f642a1a4e224b (diff)
downloadplus-dac461677c723ec0ae76aa34941be86e20da662f.tar.gz
plus-dac461677c723ec0ae76aa34941be86e20da662f.tar.bz2
plus-dac461677c723ec0ae76aa34941be86e20da662f.tar.xz
plus-dac461677c723ec0ae76aa34941be86e20da662f.zip
Fix players and npc selection.
Diffstat (limited to 'src')
-rw-r--r--src/actorspritemanager.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/actorspritemanager.cpp b/src/actorspritemanager.cpp
index 3206fe36a..d7e542323 100644
--- a/src/actorspritemanager.cpp
+++ b/src/actorspritemanager.cpp
@@ -964,7 +964,7 @@ Being *ActorSpriteManager::findNearestLivingBeing(Being *aroundBeing,
{
Being *target = sortedBeings.at(0);
- if (specialDistance && target->getType() == type
+ if (specialDistance && target->getType() == Being::MONSTER
&& target->getDistance() <= 2)
{
return nullptr;