summaryrefslogtreecommitdiff
path: root/src/localplayer.cpp
diff options
context:
space:
mode:
authorChuck Miller <shadowmil@gmail.com>2009-05-16 22:33:20 -0400
committerChuck Miller <shadowmil@gmail.com>2009-05-16 22:33:20 -0400
commita6ad03efc6223a46cc8336eaf43119fb346d7195 (patch)
treea82b96fd1f2161276b8a1afc1bd6562a6cc7010c /src/localplayer.cpp
parent98eadea1f98f76237701d2ac44868847a18d13c2 (diff)
downloadmana-a6ad03efc6223a46cc8336eaf43119fb346d7195.tar.gz
mana-a6ad03efc6223a46cc8336eaf43119fb346d7195.tar.bz2
mana-a6ad03efc6223a46cc8336eaf43119fb346d7195.tar.xz
mana-a6ad03efc6223a46cc8336eaf43119fb346d7195.zip
Fixes the lightspeed bug
Diffstat (limited to 'src/localplayer.cpp')
-rw-r--r--src/localplayer.cpp6
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;
}