summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-08-17 21:20:59 +0300
committerAndrei Karas <akaras@inbox.ru>2011-08-17 21:20:59 +0300
commit4a0c7b37814792f774ba288e28fa63cf12b3244f (patch)
tree731ee74b549641f97e0e31122ef220ec95e33c47
parent04bc4f2b057c99a7b82ab95973180381824c85ab (diff)
downloadplus-4a0c7b37814792f774ba288e28fa63cf12b3244f.tar.gz
plus-4a0c7b37814792f774ba288e28fa63cf12b3244f.tar.bz2
plus-4a0c7b37814792f774ba288e28fa63cf12b3244f.tar.xz
plus-4a0c7b37814792f774ba288e28fa63cf12b3244f.zip
Change attack logic if enabled auto switching knife to bow.
-rw-r--r--src/localplayer.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/localplayer.cpp b/src/localplayer.cpp
index 0dcf7e7c2..5192390bc 100644
--- a/src/localplayer.cpp
+++ b/src/localplayer.cpp
@@ -3464,10 +3464,7 @@ void LocalPlayer::attack2(Being *target, bool keep, bool dontChangeEquipment)
if (target && target->getType() != Being::NPC)
{
mKeepAttacking = true;
- if (mAttackWeaponType == 1)
- moveToTarget();
- else
- moveToTarget(mAttackRange);
+ moveToTarget();
}
}
}