summaryrefslogtreecommitdiff
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
parent80d2782f086ab12a1f73da4f22f39f562b225ad0 (diff)
downloadmanaverse-64414b969b94ba33a5f4fe296651e2631c106a88.tar.gz
manaverse-64414b969b94ba33a5f4fe296651e2631c106a88.tar.bz2
manaverse-64414b969b94ba33a5f4fe296651e2631c106a88.tar.xz
manaverse-64414b969b94ba33a5f4fe296651e2631c106a88.zip
remove unused variable from localplayer.
-rw-r--r--src/localplayer.cpp10
-rw-r--r--src/localplayer.h1
2 files changed, 0 insertions, 11 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))
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