From 64414b969b94ba33a5f4fe296651e2631c106a88 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 17 Jul 2013 13:49:21 +0300 Subject: remove unused variable from localplayer. --- src/localplayer.cpp | 10 ---------- src/localplayer.h | 1 - 2 files changed, 11 deletions(-) (limited to 'src') 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)) diff --git a/src/localplayer.h b/src/localplayer.h index 6786ee0b0..ee68d3e93 100644 --- a/src/localplayer.h +++ b/src/localplayer.h @@ -540,7 +540,6 @@ class LocalPlayer final : public Being, void loadHomes(); - int mTargetTime; /** How long the being has been targeted **/ int mGMLevel; // move type -- cgit v1.2.3-60-g2f50