diff options
-rw-r--r-- | src/localplayer.cpp | 6 | ||||
-rw-r--r-- | src/localplayer.h | 3 |
2 files changed, 1 insertions, 8 deletions
diff --git a/src/localplayer.cpp b/src/localplayer.cpp index 6f4b6303..b5ad79eb 100644 --- a/src/localplayer.cpp +++ b/src/localplayer.cpp @@ -87,9 +87,7 @@ LocalPlayer::LocalPlayer(int id, int job, Map *map): #endif mEquipment(new Equipment), mInStorage(false), -#ifdef EATHENA_SUPPORT mTargetTime(-1), -#endif mLastTarget(-1), mCharacterPoints(0), mCorrectionPoints(0), @@ -192,7 +190,6 @@ void LocalPlayer::logic() } mSpecialRechargeUpdateNeeded++; -#ifdef EATHENA_SUPPORT // Targeting allowed 4 times a second if (get_elapsed_time(mLastTarget) >= 250) mLastTarget = -1; @@ -204,7 +201,6 @@ void LocalPlayer::logic() setTarget(NULL); mLastTarget = -1; } -#endif if (mTarget) { @@ -461,7 +457,6 @@ Being *LocalPlayer::getTarget() const void LocalPlayer::setTarget(Being *target) { -#ifdef EATHENA_SUPPORT if (mLastTarget != -1 || target == this) return; @@ -479,7 +474,6 @@ void LocalPlayer::setTarget(Being *target) mKeepAttacking = false; mTargetTime = -1; } -#endif if (mTarget) mTarget->untarget(); diff --git a/src/localplayer.h b/src/localplayer.h index 691307ba..f0bb889d 100644 --- a/src/localplayer.h +++ b/src/localplayer.h @@ -387,9 +387,8 @@ class LocalPlayer : public Player void walk(unsigned char dir); bool mInStorage; /**< Whether storage is currently accessible */ -#ifdef EATHENA_SUPPORT + int mTargetTime; /** How long the being has been targeted **/ -#endif int mLastTarget; /** Time stamp of last targeting action, -1 if none. */ // Character status: |