summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/localplayer.cpp3
-rw-r--r--src/localplayer.h2
2 files changed, 2 insertions, 3 deletions
diff --git a/src/localplayer.cpp b/src/localplayer.cpp
index 8ab10b6da..f33a72bb0 100644
--- a/src/localplayer.cpp
+++ b/src/localplayer.cpp
@@ -98,7 +98,6 @@ extern SkillDialog *skillDialog;
LocalPlayer::LocalPlayer(int id, int subtype):
Being(id, PLAYER, subtype, 0),
- mAttackRange(0),
mTargetTime(-1),
mLastTarget(-1),
mTarget(NULL),
@@ -130,6 +129,8 @@ LocalPlayer::LocalPlayer(int id, int subtype):
{
logger->log1("LocalPlayer::LocalPlayer");
+ mAttackRange = 0;
+
listen(Mana::CHANNEL_ATTRIBUTES);
mLevel = 1;
diff --git a/src/localplayer.h b/src/localplayer.h
index 30acb3cda..414933e70 100644
--- a/src/localplayer.h
+++ b/src/localplayer.h
@@ -501,8 +501,6 @@ class LocalPlayer : public Being, public ActorSpriteListener,
bool mInStorage; /**< Whether storage is currently accessible */
- int mAttackRange;
-
int mTargetTime; /** How long the being has been targeted **/
int mLastTarget; /** Time stamp of last targeting action,
-1 if none. */