diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-08-17 22:43:38 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-08-17 22:43:38 +0300 |
commit | dac461677c723ec0ae76aa34941be86e20da662f (patch) | |
tree | 2ee30f0a504805d0422e9a121401e1518f2de6f1 | |
parent | c6c4eef4e49bb4de90845408af9f642a1a4e224b (diff) | |
download | manaverse-dac461677c723ec0ae76aa34941be86e20da662f.tar.gz manaverse-dac461677c723ec0ae76aa34941be86e20da662f.tar.bz2 manaverse-dac461677c723ec0ae76aa34941be86e20da662f.tar.xz manaverse-dac461677c723ec0ae76aa34941be86e20da662f.zip |
Fix players and npc selection.
-rw-r--r-- | src/actorspritemanager.cpp | 2 |
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; |