diff options
author | Jared Adams <jaxad0127@gmail.com> | 2009-02-28 10:06:27 -0700 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2009-02-28 10:06:27 -0700 |
commit | 49665def0ef539fc8c24cb66817fbf7e0408a1a4 (patch) | |
tree | 32f0399e61f22dee6148bfbfacda82b1319c3dbc /src | |
parent | 071b1c3126362967b0b6a837349b7c5e327574e9 (diff) | |
download | mana-49665def0ef539fc8c24cb66817fbf7e0408a1a4.tar.gz mana-49665def0ef539fc8c24cb66817fbf7e0408a1a4.tar.bz2 mana-49665def0ef539fc8c24cb66817fbf7e0408a1a4.tar.xz mana-49665def0ef539fc8c24cb66817fbf7e0408a1a4.zip |
Allow sending attack packets when not in range
This helps when your target is atually in another location due to
synchronization problems.
Diffstat (limited to 'src')
-rw-r--r-- | src/localplayer.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/localplayer.cpp b/src/localplayer.cpp index c3e3f87a..5b1500ff 100644 --- a/src/localplayer.cpp +++ b/src/localplayer.cpp @@ -508,10 +508,8 @@ void LocalPlayer::attack(Being *target, bool keep) int dist_x = target->mX - mX; int dist_y = target->mY - mY; - // Must be standing and be within attack range to continue - if ((mAction != STAND) || (mAttackRange < abs(dist_x)) || - (mAttackRange < abs(dist_y))) - return; + // Must be standing to attack + if (mAction != STAND) return; if (abs(dist_y) >= abs(dist_x)) { |