diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-10-19 00:04:40 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-10-19 00:04:40 +0300 |
commit | 3945c533f8930093b6101b00827a37d6bbde0fb4 (patch) | |
tree | 8c56fe51d13256c8034bb5b79a596752ae5674c0 /src/localplayer.cpp | |
parent | 236706b8432ac16534cb4d8d426a5b526b9e660b (diff) | |
download | manaverse-3945c533f8930093b6101b00827a37d6bbde0fb4.tar.gz manaverse-3945c533f8930093b6101b00827a37d6bbde0fb4.tar.bz2 manaverse-3945c533f8930093b6101b00827a37d6bbde0fb4.tar.xz manaverse-3945c533f8930093b6101b00827a37d6bbde0fb4.zip |
Disable autofix position for move to target archer mode.
Diffstat (limited to 'src/localplayer.cpp')
-rw-r--r-- | src/localplayer.cpp | 5 |
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( |