From 9a8d9a1e92859fdd75468852b3c7cc0de4ae44c0 Mon Sep 17 00:00:00 2001 From: Chuck Miller Date: Sat, 16 May 2009 22:33:20 -0400 Subject: Fixes the lightspeed bug (cherry picked from commit a6ad03efc6223a46cc8336eaf43119fb346d7195) --- src/localplayer.cpp | 6 +++--- 1 file 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; } -- cgit v1.2.3-70-g09d2