summaryrefslogtreecommitdiff
path: root/src
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
parent236706b8432ac16534cb4d8d426a5b526b9e660b (diff)
downloadplus-3945c533f8930093b6101b00827a37d6bbde0fb4.tar.gz
plus-3945c533f8930093b6101b00827a37d6bbde0fb4.tar.bz2
plus-3945c533f8930093b6101b00827a37d6bbde0fb4.tar.xz
plus-3945c533f8930093b6101b00827a37d6bbde0fb4.zip
Disable autofix position for move to target archer mode.
Diffstat (limited to 'src')
-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(