summaryrefslogtreecommitdiff
path: root/src/localplayer.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-10-19 00:04:40 +0300
committerAndrei Karas <akaras@inbox.ru>2011-10-19 00:04:40 +0300
commit3945c533f8930093b6101b00827a37d6bbde0fb4 (patch)
tree8c56fe51d13256c8034bb5b79a596752ae5674c0 /src/localplayer.cpp
parent236706b8432ac16534cb4d8d426a5b526b9e660b (diff)
downloadmanaplus-3945c533f8930093b6101b00827a37d6bbde0fb4.tar.gz
manaplus-3945c533f8930093b6101b00827a37d6bbde0fb4.tar.bz2
manaplus-3945c533f8930093b6101b00827a37d6bbde0fb4.tar.xz
manaplus-3945c533f8930093b6101b00827a37d6bbde0fb4.zip
Disable autofix position for move to target archer mode.
Diffstat (limited to 'src/localplayer.cpp')
-rw-r--r--src/localplayer.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/localplayer.cpp b/src/localplayer.cpp
index f33a72bb0..58edbfd78 100644
--- a/src/localplayer.cpp
+++ b/src/localplayer.cpp
@@ -3779,8 +3779,11 @@ void LocalPlayer::fixAttackTarget()
if (!mMap || !mTarget)
return;
- if (!getAttackType() || !config.getBoolValue("autofixPos"))
+ if (getMoveToTargetType() == 7 || !getAttackType()
+ || !config.getBoolValue("autofixPos"))
+ {
return;
+ }
const Vector &playerPos = getPosition();
Path debugPath = mMap->findPath(