From dac461677c723ec0ae76aa34941be86e20da662f Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 17 Aug 2012 22:43:38 +0300 Subject: Fix players and npc selection. --- src/actorspritemanager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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; -- cgit v1.2.3-70-g09d2