summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <bjorn@lindeijer.nl>2024-03-12 21:19:05 +0100
committerThorbjørn Lindeijer <bjorn@lindeijer.nl>2024-03-13 11:00:38 +0100
commit99e2a34b1a29337bebe75adb7002ea437466a64c (patch)
tree0634dd3d7107745caf2e48c66e075c0859c1ed1c
parent55dbddded11691ece499370b49215011d3c867f0 (diff)
downloadmana-99e2a34b1a29337bebe75adb7002ea437466a64c.tar.gz
mana-99e2a34b1a29337bebe75adb7002ea437466a64c.tar.bz2
mana-99e2a34b1a29337bebe75adb7002ea437466a64c.tar.xz
mana-99e2a34b1a29337bebe75adb7002ea437466a64c.zip
Adjusted handling of SMSG_LOGIN_DATA to what tmwa sends
-rw-r--r--src/net/tmwa/loginhandler.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/net/tmwa/loginhandler.cpp b/src/net/tmwa/loginhandler.cpp
index 1e0c6eda..8ee5e102 100644
--- a/src/net/tmwa/loginhandler.cpp
+++ b/src/net/tmwa/loginhandler.cpp
@@ -125,7 +125,7 @@ void LoginHandler::handleMessage(MessageIn &msg)
mToken.session_ID1 = msg.readInt32();
mToken.account_ID = msg.readInt32();
mToken.session_ID2 = msg.readInt32();
- msg.skip(30); // unknown
+ msg.skip(30); // unused
mToken.sex = msg.readInt8() ? Gender::MALE : Gender::FEMALE;
for (int i = 0; i < worldCount; i++)
@@ -135,9 +135,10 @@ void LoginHandler::handleMessage(MessageIn &msg)
world->address = msg.readInt32();
world->port = msg.readInt16();
world->name = msg.readString(20);
- world->online_users = msg.readInt32();
+ world->online_users = msg.readInt16();
world->updateHost = mUpdateHost;
- msg.skip(2); // unknown
+ msg.readInt16(); // maintenance
+ msg.readInt16(); // is_new
logger->log("Network: Server: %s (%s:%d)",
world->name.c_str(),