summaryrefslogtreecommitdiff
path: root/src/localplayer.cpp
diff options
context:
space:
mode:
authorIra Rice <irarice@gmail.com>2008-10-27 06:02:05 +0000
committerIra Rice <irarice@gmail.com>2008-10-27 06:02:05 +0000
commitdc4cfce2e367b93b9733869298a3459883df2e3d (patch)
tree58ccf0ecdf7c6a0ad036c2179e2fc106006a671a /src/localplayer.cpp
parentd303b0164b62708b48b9f831ff0e37bddd8eb5e9 (diff)
downloadmana-dc4cfce2e367b93b9733869298a3459883df2e3d.tar.gz
mana-dc4cfce2e367b93b9733869298a3459883df2e3d.tar.bz2
mana-dc4cfce2e367b93b9733869298a3459883df2e3d.tar.xz
mana-dc4cfce2e367b93b9733869298a3459883df2e3d.zip
Fixed mouse attacks and targeting.
Diffstat (limited to 'src/localplayer.cpp')
-rw-r--r--src/localplayer.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/localplayer.cpp b/src/localplayer.cpp
index a16aa685..34a99bc9 100644
--- a/src/localplayer.cpp
+++ b/src/localplayer.cpp
@@ -273,7 +273,11 @@ void LocalPlayer::setTarget(Being *target)
if (mLastAction != -1)
return;
mLastAction = tick_time;
- mTargetTime = tick_time;
+
+ if (target)
+ {
+ mTargetTime = tick_time;
+ }
if (target == mTarget)
{