From 1e9b7c519953c73c6e5ca4ce2169eb674267c115 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 20 Apr 2013 16:40:24 +0300 Subject: fix style in other files. --- src/being.cpp | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) (limited to 'src/being.cpp') diff --git a/src/being.cpp b/src/being.cpp index c5116039a..9411cbe8b 100644 --- a/src/being.cpp +++ b/src/being.cpp @@ -201,6 +201,7 @@ typedef std::map::const_iterator IntMapCIter; Being::Being(const int id, const Type type, const uint16_t subtype, Map *const map) : ActorSprite(id), + mNextSound(), mInfo(BeingInfo::unknown), mActionTime(0), mEmotionSprite(nullptr), @@ -214,12 +215,25 @@ Being::Being(const int id, const Type type, const uint16_t subtype, mDirectionDelayed(0), mSpriteDirection(DIRECTION_DOWN), mSpriteAction(SpriteAction::STAND), + mName(), + mRaceName(), + mPartyName(), + mGuildName(), mDispName(nullptr), + mNameColor(nullptr), mShowName(false), mEquippedWeapon(nullptr), + mPath(), + mSpeech(), mText(nullptr), + mTextColor(nullptr), mLevel(0), + mDest(), + mSpriteIDs(), + mSpriteColors(), + mSpriteColorsIds(), mGender(GENDER_UNSPECIFIED), + mGuilds(), mParty(nullptr), mIsGM(false), mAttackRange(1), @@ -234,6 +248,11 @@ Being::Being(const int id, const Type type, const uint16_t subtype, mDistance(0), mIsReachable(REACH_UNKNOWN), mGoodStatus(-1), + mMoveTime(0), + mAttackTime(0), + mTalkTime(0), + mOtherTime(0), + mTestTime(cur_time), mErased(false), mEnemy(false), mIp(""), @@ -281,7 +300,6 @@ Being::Being(const int id, const Type type, const uint16_t subtype, setShowName(mShowName); updateColors(); - resetCounters(); updatePercentHP(); } -- cgit v1.2.3-60-g2f50