From 5e988995513762efc328dc0c592e191b49622d30 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 29 Jan 2012 14:09:23 +0300 Subject: Fix incorrect level in update list in tmw server. --- src/gui/whoisonline.h | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/src/gui/whoisonline.h b/src/gui/whoisonline.h index feaec3ab4..d2f0c30d0 100644 --- a/src/gui/whoisonline.h +++ b/src/gui/whoisonline.h @@ -46,8 +46,7 @@ class OnlinePlayer { public: OnlinePlayer(std::string nick, unsigned char status, - unsigned char level, unsigned char gender, - unsigned char version) : + char level, unsigned char gender, char version) : mNick(nick), mText(""), mStatus(status), @@ -63,10 +62,10 @@ class OnlinePlayer unsigned char getStaus() const { return mStatus; } - unsigned char getVersion() const + char getVersion() const { return mVersion; } - unsigned char getLevel() const + char getLevel() const { return mLevel; } const std::string getText() @@ -74,7 +73,7 @@ class OnlinePlayer void setText(std::string str); - void setLevel(unsigned char level) + void setLevel(char level) { mLevel = level; } private: @@ -84,9 +83,9 @@ class OnlinePlayer unsigned char mStatus; - unsigned char mLevel; + char mLevel; - unsigned char mVersion; + char mVersion; unsigned char mGender; }; -- cgit v1.2.3-70-g09d2