summaryrefslogtreecommitdiff
path: root/src/net/tmwa/loginhandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-10-23 22:02:46 +0300
committerAndrei Karas <akaras@inbox.ru>2014-10-23 22:02:46 +0300
commit117bd5507d5e644107d7a53c9b12d7a2587b69a5 (patch)
treebd3f186fcc6cea40c078050a046b28e6dfe085eb /src/net/tmwa/loginhandler.cpp
parent4d02075c3daaefca2dcad72546e1e45b4219b5ad (diff)
downloadmanaplus-117bd5507d5e644107d7a53c9b12d7a2587b69a5.tar.gz
manaplus-117bd5507d5e644107d7a53c9b12d7a2587b69a5.tar.bz2
manaplus-117bd5507d5e644107d7a53c9b12d7a2587b69a5.tar.xz
manaplus-117bd5507d5e644107d7a53c9b12d7a2587b69a5.zip
Add packet fields comments in loginhandler.
Diffstat (limited to 'src/net/tmwa/loginhandler.cpp')
-rw-r--r--src/net/tmwa/loginhandler.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/net/tmwa/loginhandler.cpp b/src/net/tmwa/loginhandler.cpp
index 75b5dba65..b0e381407 100644
--- a/src/net/tmwa/loginhandler.cpp
+++ b/src/net/tmwa/loginhandler.cpp
@@ -189,15 +189,15 @@ void LoginHandler::requestUpdateHosts()
void LoginHandler::processServerVersion(Net::MessageIn &msg)
{
- const uint8_t b1 = msg.readUInt8(); // -1
- const uint8_t b2 = msg.readUInt8(); // E
- const uint8_t b3 = msg.readUInt8(); // V
- const uint8_t b4 = msg.readUInt8(); // L
+ const uint8_t b1 = msg.readUInt8("b1"); // -1
+ const uint8_t b2 = msg.readUInt8("b2"); // E
+ const uint8_t b3 = msg.readUInt8("b3"); // V
+ const uint8_t b4 = msg.readUInt8("b4"); // L
if (b1 == 255 && b2 == 'E' && b3 == 'V' && b4 == 'L')
{
const unsigned int options = msg.readUInt8("options");
mRegistrationEnabled = options & FLAG_REGISTRATION;
- msg.skip(2, "unused");
+ msg.readInt16("unused");
serverVersion = msg.readUInt8("server version");
tmwServerVersion = 0;
if (serverVersion >= 5)