summaryrefslogtreecommitdiff
path: root/src/net/ea/loginhandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-12-18 17:19:28 +0300
committerAndrei Karas <akaras@inbox.ru>2011-12-18 17:19:28 +0300
commit722404ad29f268ef8861c62b038c4e14652c7555 (patch)
treef38d57adaba7bbe103f48bf3fd0b92c99d2c5329 /src/net/ea/loginhandler.cpp
parentba997be747666c74c46c734cb636a8de84c582b3 (diff)
downloadmv-722404ad29f268ef8861c62b038c4e14652c7555.tar.gz
mv-722404ad29f268ef8861c62b038c4e14652c7555.tar.bz2
mv-722404ad29f268ef8861c62b038c4e14652c7555.tar.xz
mv-722404ad29f268ef8861c62b038c4e14652c7555.zip
Ad comments for "unused" data from server packets.
Fix some guild and worlds packets.
Diffstat (limited to 'src/net/ea/loginhandler.cpp')
-rw-r--r--src/net/ea/loginhandler.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/net/ea/loginhandler.cpp b/src/net/ea/loginhandler.cpp
index 420236cfd..a23c83b63 100644
--- a/src/net/ea/loginhandler.cpp
+++ b/src/net/ea/loginhandler.cpp
@@ -159,7 +159,7 @@ void LoginHandler::processUpdateHost(Net::MessageIn &msg)
void LoginHandler::processLoginData(Net::MessageIn &msg)
{
// Skip the length word
- msg.skip(2);
+ msg.skip(2); // size
clearWorlds();
@@ -170,7 +170,7 @@ void LoginHandler::processLoginData(Net::MessageIn &msg)
mToken.session_ID2 = msg.readInt32();
msg.skip(4); // old ip
loginData.lastLogin = msg.readString(24);
- msg.skip(2); // unused bytes
+ msg.skip(2); // 0 unused bytes
// msg.skip(30); // unknown
// reserve bits for future usage
@@ -183,10 +183,11 @@ void LoginHandler::processLoginData(Net::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();
config.setValue("updatehost", mUpdateHost);
world->updateHost = mUpdateHost;
- msg.skip(2); // unknown
+ msg.skip(2); // maintenance
+ msg.skip(2); // new
logger->log("Network: Server: %s (%s:%d)", world->name.c_str(),
ipToString(world->address), world->port);