summaryrefslogtreecommitdiff
path: root/src/localplayer.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-07-17 13:49:21 +0300
committerAndrei Karas <akaras@inbox.ru>2013-07-17 13:49:21 +0300
commit64414b969b94ba33a5f4fe296651e2631c106a88 (patch)
tree2a0ae4e6030422ccbb3489f4b35fea4e3c3367c3 /src/localplayer.cpp
parent80d2782f086ab12a1f73da4f22f39f562b225ad0 (diff)
downloadManaVerse-64414b969b94ba33a5f4fe296651e2631c106a88.tar.gz
ManaVerse-64414b969b94ba33a5f4fe296651e2631c106a88.tar.bz2
ManaVerse-64414b969b94ba33a5f4fe296651e2631c106a88.tar.xz
ManaVerse-64414b969b94ba33a5f4fe296651e2631c106a88.zip
remove unused variable from localplayer.
Diffstat (limited to 'src/localplayer.cpp')
-rw-r--r--src/localplayer.cpp10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/localplayer.cpp b/src/localplayer.cpp
index 1c0d7f139..9342b6541 100644
--- a/src/localplayer.cpp
+++ b/src/localplayer.cpp
@@ -95,7 +95,6 @@ extern SkillDialog *skillDialog;
LocalPlayer::LocalPlayer(const int id, const int subtype) :
Being(id, PLAYER, subtype, nullptr),
mUpdateName(true),
- mTargetTime(-1),
mGMLevel(0),
mInvertDirection(0),
mCrazyMoveType(config.getIntValue("crazyMoveType")),
@@ -284,9 +283,6 @@ void LocalPlayer::logic()
PlayerInfo::logic();
#endif
- if (get_elapsed_time(mTargetTime) >= 60000)
- mTargetTime = tick_time;
-
if (mTarget)
{
if (mTarget->getType() == ActorSprite::NPC)
@@ -958,11 +954,6 @@ void LocalPlayer::setTarget(Being *const target)
if (target == mTarget)
return;
- if (target || mAction == ATTACK)
- mTargetTime = tick_time;
- else
- mTargetTime = -1;
-
Being *oldTarget = nullptr;
if (mTarget)
{
@@ -1312,7 +1303,6 @@ void LocalPlayer::attack(Being *const target, const bool keep,
}
mActionTime = tick_time;
- mTargetTime = tick_time;
}
if (target->getType() != Being::PLAYER || checAttackPermissions(target))