diff options
author | Chuck Miller <shadowmil@gmail.com> | 2009-05-16 22:33:20 -0400 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2009-05-17 22:23:04 +0200 |
commit | 9a8d9a1e92859fdd75468852b3c7cc0de4ae44c0 (patch) | |
tree | 04fdf3ebb62b7e7c36954489cca77c6a895812f9 | |
parent | 11f68b7cfe0833b8d5b2dc9aee2256b499812e7e (diff) | |
download | mana-9a8d9a1e92859fdd75468852b3c7cc0de4ae44c0.tar.gz mana-9a8d9a1e92859fdd75468852b3c7cc0de4ae44c0.tar.bz2 mana-9a8d9a1e92859fdd75468852b3c7cc0de4ae44c0.tar.xz mana-9a8d9a1e92859fdd75468852b3c7cc0de4ae44c0.zip |
Fixes the lightspeed bug
(cherry picked from commit a6ad03efc6223a46cc8336eaf43119fb346d7195)
-rw-r--r-- | src/localplayer.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/localplayer.cpp b/src/localplayer.cpp index 650de182..e9bc30f2 100644 --- a/src/localplayer.cpp +++ b/src/localplayer.cpp @@ -727,10 +727,10 @@ void LocalPlayer::stopAttack() { if (mTarget) { - setAction(STAND); - mLastTarget = -1; + if (mAction == ATTACK) + setAction(STAND); + setTarget(NULL); } - setTarget(NULL); mLastTarget = -1; } |