From 881501a05400f58df76036e59313d08305c0b494 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 10 Oct 2011 02:15:26 +0300 Subject: Player range fix after previous commit. --- src/localplayer.cpp | 3 ++- src/localplayer.h | 2 -- 2 files changed, 2 insertions(+), 3 deletions(-) (limited to 'src') 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. */ -- cgit v1.2.3-70-g09d2