From dc4cfce2e367b93b9733869298a3459883df2e3d Mon Sep 17 00:00:00 2001 From: Ira Rice Date: Mon, 27 Oct 2008 06:02:05 +0000 Subject: Fixed mouse attacks and targeting. --- src/localplayer.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/localplayer.cpp') 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) { -- cgit v1.2.3-70-g09d2