summaryrefslogtreecommitdiff
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
parent65d6e86c20604e76ac0de46e54bf5571c570fd53 (diff)
downloadmv-3bbaedbdf939152b667837d8f9569df359af97ff.tar.gz
mv-3bbaedbdf939152b667837d8f9569df359af97ff.tar.bz2
mv-3bbaedbdf939152b667837d8f9569df359af97ff.tar.xz
mv-3bbaedbdf939152b667837d8f9569df359af97ff.zip
Allow select players if attack filter is set.
-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)
{