diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-10-10 02:15:26 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-10-10 02:15:26 +0300 |
commit | 881501a05400f58df76036e59313d08305c0b494 (patch) | |
tree | 32cfa073737d2e64577441c7b1d0b82e260b4c5b | |
parent | 994ce665a9a32899a0f7efadf1253faa9a3cdbed (diff) | |
download | manaverse-881501a05400f58df76036e59313d08305c0b494.tar.gz manaverse-881501a05400f58df76036e59313d08305c0b494.tar.bz2 manaverse-881501a05400f58df76036e59313d08305c0b494.tar.xz manaverse-881501a05400f58df76036e59313d08305c0b494.zip |
Player range fix after previous commit.
-rw-r--r-- | src/localplayer.cpp | 3 | ||||
-rw-r--r-- | src/localplayer.h | 2 |
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. */ |