diff options
author | Ira Rice <irarice@gmail.com> | 2008-12-07 20:15:07 -0700 |
---|---|---|
committer | Ira Rice <irarice@gmail.com> | 2008-12-07 20:15:07 -0700 |
commit | d11b55a4ad9b24d8fb6597e5b1e0eeb904bd9505 (patch) | |
tree | ccf349a855b8bbd14fff0462e3d7bbf365bf26ec /src/localplayer.cpp | |
parent | ca96882fe9319f687fce46c18f6edc671e4efc8a (diff) | |
download | mana-d11b55a4ad9b24d8fb6597e5b1e0eeb904bd9505.tar.gz mana-d11b55a4ad9b24d8fb6597e5b1e0eeb904bd9505.tar.bz2 mana-d11b55a4ad9b24d8fb6597e5b1e0eeb904bd9505.tar.xz mana-d11b55a4ad9b24d8fb6597e5b1e0eeb904bd9505.zip |
Added some initialization and removed ChargeDialog
Many member variables of LocalPlayer were not being initialized
properly. In general this shouldn't have caused any problems, but it's
bad style.
The ChargeDialog was removed. This class was long dead anyway.
Signed-off-by: Bjørn Lindeijer <bjorn@lindeijer.nl>
Conflicts:
src/Makefile.am
src/game.cpp
src/gui/chargedialog.cpp
src/gui/chargedialog.h
src/localplayer.cpp
src/localplayer.h
Signed-off-by: Ira Rice <irarice@gmail.com>
Diffstat (limited to 'src/localplayer.cpp')
-rw-r--r-- | src/localplayer.cpp | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/src/localplayer.cpp b/src/localplayer.cpp index 292f70e0..24b50d03 100644 --- a/src/localplayer.cpp +++ b/src/localplayer.cpp @@ -46,9 +46,19 @@ LocalPlayer *player_node = NULL; LocalPlayer::LocalPlayer(Uint32 id, Uint16 job, Map *map): Player(id, job, map), - mXpForNextLevel(0), + mCharId(0), + mJobXp(0), + mLevel(0), + mJobLevel(0), + mXpForNextLevel(0), mJobXpForNextLevel(0), + mHp(0), mMaxHp(0), mMp(0), mMaxMp(0), + mGp(0), mAttackRange(0), - mSkillPoint(0), + mTotalWeight(0), mMaxWeight(0), + ATK(0), MATK(0), DEF(0), MDEF(0), HIT(0), FLEE(0), + ATK_BONUS(0), MATK_BONUS(0), DEF_BONUS(0), MDEF_BONUS(0), FLEE_BONUS(0), + mStatPoint(0), mSkillPoint(0), + mStatsPointsToAttribute(0), mXp(0), mNetwork(0), mTarget(NULL), mPickUpTarget(NULL), mTrading(false), mGoingToTarget(false), |