summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-04-24 23:48:11 +0300
committerAndrei Karas <akaras@inbox.ru>2011-04-24 23:48:11 +0300
commit3bbaedbdf939152b667837d8f9569df359af97ff (patch)
treeedda5fe13523860851d32c7533875467315e76b6 /src
parent65d6e86c20604e76ac0de46e54bf5571c570fd53 (diff)
downloadplus-3bbaedbdf939152b667837d8f9569df359af97ff.tar.gz
plus-3bbaedbdf939152b667837d8f9569df359af97ff.tar.bz2
plus-3bbaedbdf939152b667837d8f9569df359af97ff.tar.xz
plus-3bbaedbdf939152b667837d8f9569df359af97ff.zip
Allow select players if attack filter is set.
Diffstat (limited to 'src')
-rw-r--r--src/actorspritemanager.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/actorspritemanager.cpp b/src/actorspritemanager.cpp
index bbcf29090..2f8c28ad5 100644
--- a/src/actorspritemanager.cpp
+++ b/src/actorspritemanager.cpp
@@ -686,7 +686,9 @@ Being *ActorSpriteManager::findNearestLivingBeing(Being *aroundBeing,
bool cycleSelect = (mCyclePlayers && type == Being::PLAYER)
|| (mCycleMonsters && type == Being::MONSTER);
- bool filtered = config.getBoolValue("enableAttackFilter");
+ bool filtered = config.getBoolValue("enableAttackFilter")
+ && type != Being::PLAYER;
+
bool ignoreDefault = false;
if (filtered)
{