summaryrefslogtreecommitdiff
path: root/src/actormanager.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-07-21 13:00:00 +0300
committerAndrei Karas <akaras@inbox.ru>2014-07-21 13:00:00 +0300
commitcfffcc941898c4163e1bd62b8e514d3535511666 (patch)
treeb9889c95f521b81edaec32ac8b45fe859154ca3d /src/actormanager.cpp
parentb02b4ce0b656a93fbcaa927b0ba289edfec6e22c (diff)
downloadplus-cfffcc941898c4163e1bd62b8e514d3535511666.tar.gz
plus-cfffcc941898c4163e1bd62b8e514d3535511666.tar.bz2
plus-cfffcc941898c4163e1bd62b8e514d3535511666.tar.xz
plus-cfffcc941898c4163e1bd62b8e514d3535511666.zip
move "change move to target type" option into gamemodifiers.
Diffstat (limited to 'src/actormanager.cpp')
-rw-r--r--src/actormanager.cpp3
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;