From ee0db8e55a060f9b0ebe91fd4d32653988c5dce4 Mon Sep 17 00:00:00 2001 From: Yohann Ferreira Date: Fri, 13 Jan 2012 01:42:54 +0100 Subject: Removed the auto-untargeting code for the local player. This was an annoyance in long lasting battles. Resolves: Mana-Mantis #445. Rewiewed-by: Ablu, bjorn --- src/localplayer.cpp | 8 -------- 1 file changed, 8 deletions(-) (limited to 'src/localplayer.cpp') diff --git a/src/localplayer.cpp b/src/localplayer.cpp index 4bbb8dc5..1e790d44 100644 --- a/src/localplayer.cpp +++ b/src/localplayer.cpp @@ -131,14 +131,6 @@ void LocalPlayer::logic() if (get_elapsed_time(mLastTarget) >= 250) mLastTarget = -1; - // Remove target if its been on a being for more than a minute - if (get_elapsed_time(mTargetTime) >= 60000) - { - mTargetTime = -1; - setTarget(NULL); - mLastTarget = -1; - } - if (mTarget) { if (mTarget->getType() == ActorSprite::NPC) -- cgit v1.2.3-70-g09d2