diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-04-24 23:48:11 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-04-24 23:48:11 +0300 |
commit | 3bbaedbdf939152b667837d8f9569df359af97ff (patch) | |
tree | edda5fe13523860851d32c7533875467315e76b6 /src | |
parent | 65d6e86c20604e76ac0de46e54bf5571c570fd53 (diff) | |
download | manaverse-3bbaedbdf939152b667837d8f9569df359af97ff.tar.gz manaverse-3bbaedbdf939152b667837d8f9569df359af97ff.tar.bz2 manaverse-3bbaedbdf939152b667837d8f9569df359af97ff.tar.xz manaverse-3bbaedbdf939152b667837d8f9569df359af97ff.zip |
Allow select players if attack filter is set.
Diffstat (limited to 'src')
-rw-r--r-- | src/actorspritemanager.cpp | 4 |
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) { |