summaryrefslogtreecommitdiff
path: root/src/localplayer.cpp
diff options
context:
space:
mode:
authorIra Rice <irarice@gmail.com>2009-02-10 12:54:44 -0700
committerIra Rice <irarice@gmail.com>2009-02-10 12:54:44 -0700
commit4eca78e647e8af3a19c70c5a6a3b73c20d2a4984 (patch)
treef1537a69d2fc546a1d13c6db3cc2aa2ba2196300 /src/localplayer.cpp
parent2ac3a8fb221391238ab4e23c7ee0c25f83cec97b (diff)
downloadmana-4eca78e647e8af3a19c70c5a6a3b73c20d2a4984.tar.gz
mana-4eca78e647e8af3a19c70c5a6a3b73c20d2a4984.tar.bz2
mana-4eca78e647e8af3a19c70c5a6a3b73c20d2a4984.tar.xz
mana-4eca78e647e8af3a19c70c5a6a3b73c20d2a4984.zip
Don't time out targets when attacking.
Signed-off-by: Ira Rice <irarice@gmail.com>
Diffstat (limited to 'src/localplayer.cpp')
-rw-r--r--src/localplayer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/localplayer.cpp b/src/localplayer.cpp
index 3c477b08..efcebf28 100644
--- a/src/localplayer.cpp
+++ b/src/localplayer.cpp
@@ -337,7 +337,7 @@ void LocalPlayer::setTarget(Being *target)
if (target == mTarget)
target = NULL;
- if (target)
+ if (target || mAction == ATTACK)
{
mTargetTime = tick_time;
}