summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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