diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-07-21 13:00:00 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-07-21 13:00:00 +0300 |
commit | cfffcc941898c4163e1bd62b8e514d3535511666 (patch) | |
tree | b9889c95f521b81edaec32ac8b45fe859154ca3d /src/actormanager.cpp | |
parent | b02b4ce0b656a93fbcaa927b0ba289edfec6e22c (diff) | |
download | manaplus-cfffcc941898c4163e1bd62b8e514d3535511666.tar.gz manaplus-cfffcc941898c4163e1bd62b8e514d3535511666.tar.bz2 manaplus-cfffcc941898c4163e1bd62b8e514d3535511666.tar.xz manaplus-cfffcc941898c4163e1bd62b8e514d3535511666.zip |
move "change move to target type" option into gamemodifiers.
Diffstat (limited to 'src/actormanager.cpp')
-rw-r--r-- | src/actormanager.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/actormanager.cpp b/src/actormanager.cpp index 4e4cf0655..c94775921 100644 --- a/src/actormanager.cpp +++ b/src/actormanager.cpp @@ -23,6 +23,7 @@ #include "actormanager.h" #include "configuration.h" +#include "settings.h" #include "main.h" #include "being/attributes.h" @@ -877,7 +878,7 @@ Being *ActorManager::findNearestLivingBeing(const Being *const aroundBeing, const int attackRange = player_node->getAttackRange(); bool specialDistance = false; - if (player_node->getMoveToTargetType() == 7 + if (settings.moveToTargetType == 7 && player_node->getAttackRange() > 2) { specialDistance = true; |