summaryrefslogtreecommitdiff
path: root/src/localplayer.cpp
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 /src/localplayer.cpp
parent04bc4f2b057c99a7b82ab95973180381824c85ab (diff)
downloadmanaverse-4a0c7b37814792f774ba288e28fa63cf12b3244f.tar.gz
manaverse-4a0c7b37814792f774ba288e28fa63cf12b3244f.tar.bz2
manaverse-4a0c7b37814792f774ba288e28fa63cf12b3244f.tar.xz
manaverse-4a0c7b37814792f774ba288e28fa63cf12b3244f.zip
Change attack logic if enabled auto switching knife to bow.
Diffstat (limited to 'src/localplayer.cpp')
-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();
}
}
}