summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorYohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer>2012-01-13 01:42:54 +0100
committerYohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer>2012-01-14 22:45:24 +0100
commitee0db8e55a060f9b0ebe91fd4d32653988c5dce4 (patch)
tree6f6bc410070222cc86aeec67751a1f4236ec624b /src
parent55349d03c72de32159eab8bbaf36ef3504572c92 (diff)
downloadmana-ee0db8e55a060f9b0ebe91fd4d32653988c5dce4.tar.gz
mana-ee0db8e55a060f9b0ebe91fd4d32653988c5dce4.tar.bz2
mana-ee0db8e55a060f9b0ebe91fd4d32653988c5dce4.tar.xz
mana-ee0db8e55a060f9b0ebe91fd4d32653988c5dce4.zip
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
Diffstat (limited to 'src')
-rw-r--r--src/localplayer.cpp8
1 files changed, 0 insertions, 8 deletions
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)