From cfffcc941898c4163e1bd62b8e514d3535511666 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 21 Jul 2014 13:00:00 +0300 Subject: move "change move to target type" option into gamemodifiers. --- src/actormanager.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/actormanager.cpp') 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; -- cgit v1.2.3-70-g09d2