summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Athay <ko2fan@gmail.com>2024-04-15 01:23:34 +0100
committerDavid Athay <ko2fan@gmail.com>2024-04-15 01:23:34 +0100
commit1ce5c43b90c5d882cdae789dcbe4fb994b6bd6d7 (patch)
tree19afeb2034c16b523f12fa8d8a389c60c6572850
parentb16e95ca94b709f6a19abedb51e2fb313422a4d5 (diff)
downloadmana-1ce5c43b90c5d882cdae789dcbe4fb994b6bd6d7.tar.gz
mana-1ce5c43b90c5d882cdae789dcbe4fb994b6bd6d7.tar.bz2
mana-1ce5c43b90c5d882cdae789dcbe4fb994b6bd6d7.tar.xz
mana-1ce5c43b90c5d882cdae789dcbe4fb994b6bd6d7.zip
Fixed player names
-rw-r--r--src/net/tmwa/playerlisthandler.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/net/tmwa/playerlisthandler.cpp b/src/net/tmwa/playerlisthandler.cpp
index fe0b7bab..b15c28c6 100644
--- a/src/net/tmwa/playerlisthandler.cpp
+++ b/src/net/tmwa/playerlisthandler.cpp
@@ -59,14 +59,14 @@ void PlayerListHandler::handleMessage(MessageIn &msg)
int length = msg.readInt16();
int count = (length - 4) / 31;
std::vector<Avatar*> onlineUsers;
-
+
SERVER_NOTICE(strprintf(_("%d players online."), count))
for (int i = 0; i < count; i++)
{
int id = msg.readInt32();
std::string nick = msg.readString(24);
- msg.readInt32(); // level
- msg.readInt32(); // gm level
+ msg.readInt8(); // level
+ msg.readInt8(); // gm level
msg.readInt8(); // gender
Avatar *avatar = new Avatar(nick);