From 767b8400fb086616616a298655f0bc2eaf239256 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 8 May 2014 22:48:11 +0300 Subject: Fix code style in other files. --- src/avatar.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src/avatar.h') diff --git a/src/avatar.h b/src/avatar.h index 60e68a948..f8f8d9941 100644 --- a/src/avatar.h +++ b/src/avatar.h @@ -23,10 +23,12 @@ #ifndef AVATAR_H #define AVATAR_H -#include "localconsts.h" +#include "being/gender.h" #include +#include "localconsts.h" + enum AvatarType { AVATAR_PLAYER = 0 @@ -154,10 +156,10 @@ public: void setCharId(const int id) { mCharId = id; } - int getGender() const A_WARN_UNUSED + Gender getGender() const A_WARN_UNUSED { return mGender; } - void setGender(const int g) + void setGender(const Gender g) { mGender = g; } int getRace() const A_WARN_UNUSED @@ -192,7 +194,7 @@ protected: int mY; int mType; int mExp; - int mGender; + Gender mGender; int mRace; std::string mIp; bool mOnline; -- cgit v1.2.3-60-g2f50