summaryrefslogtreecommitdiff
path: root/src/localplayer.cpp
diff options
context:
space:
mode:
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();
}
}
}