summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-01-29 14:09:23 +0300
committerAndrei Karas <akaras@inbox.ru>2012-01-29 14:09:23 +0300
commit5e988995513762efc328dc0c592e191b49622d30 (patch)
treeaa81c3e4757e50cb063a0ef433e1a5d0b896c7d7 /src/gui
parentcc3d90c515331acab2f888fe9c3e72ed321f7f1a (diff)
downloadplus-5e988995513762efc328dc0c592e191b49622d30.tar.gz
plus-5e988995513762efc328dc0c592e191b49622d30.tar.bz2
plus-5e988995513762efc328dc0c592e191b49622d30.tar.xz
plus-5e988995513762efc328dc0c592e191b49622d30.zip
Fix incorrect level in update list in tmw server.
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/whoisonline.h13
1 files 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;
};