summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-07-28 20:17:24 +0300
committerAndrei Karas <akaras@inbox.ru>2013-07-28 20:17:24 +0300
commitc1e75f8d55dddf4fa3740a2f879805533b00a02d (patch)
treeb1eceab557076fd338efada84ed20e1cdf46a75f /src
parent441a90b599613813f97f85537b7a05e628fba4cb (diff)
downloadplus-c1e75f8d55dddf4fa3740a2f879805533b00a02d.tar.gz
plus-c1e75f8d55dddf4fa3740a2f879805533b00a02d.tar.bz2
plus-c1e75f8d55dddf4fa3740a2f879805533b00a02d.tar.xz
plus-c1e75f8d55dddf4fa3740a2f879805533b00a02d.zip
move bools in avatar.
Diffstat (limited to 'src')
-rw-r--r--src/avatar.cpp11
-rw-r--r--src/avatar.h4
2 files changed, 8 insertions, 7 deletions
diff --git a/src/avatar.cpp b/src/avatar.cpp
index f2e6bc4ba..4fbf4f01f 100644
--- a/src/avatar.cpp
+++ b/src/avatar.cpp
@@ -33,19 +33,20 @@ Avatar::Avatar(const std::string &name):
mCharId(0),
mName(name),
mOriginalName(name),
- mHp(0), mMaxHp(0),
+ mHp(0),
+ mMaxHp(0),
mDamageHp(0),
mLevel(1),
- mOnline(false),
- mDisplayBold(false),
- mMap(""),
+ mMap(),
mX(-1),
mY(-1),
mType(AVATAR_PLAYER),
mExp(0),
mGender(GENDER_UNSPECIFIED),
mRace(-1),
- mIp("")
+ mIp(),
+ mOnline(false),
+ mDisplayBold(false)
{
}
diff --git a/src/avatar.h b/src/avatar.h
index 68206bb19..daabdd44a 100644
--- a/src/avatar.h
+++ b/src/avatar.h
@@ -181,8 +181,6 @@ protected:
int mMaxHp;
int mDamageHp;
int mLevel;
- bool mOnline;
- bool mDisplayBold;
std::string mMap;
int mX;
int mY;
@@ -191,6 +189,8 @@ protected:
int mGender;
int mRace;
std::string mIp;
+ bool mOnline;
+ bool mDisplayBold;
};
#endif // AVATAR_H