summaryrefslogtreecommitdiff
path: root/src/net/tmwa
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/tmwa
parentba997be747666c74c46c734cb636a8de84c582b3 (diff)
downloadplus-722404ad29f268ef8861c62b038c4e14652c7555.tar.gz
plus-722404ad29f268ef8861c62b038c4e14652c7555.tar.bz2
plus-722404ad29f268ef8861c62b038c4e14652c7555.tar.xz
plus-722404ad29f268ef8861c62b038c4e14652c7555.zip
Ad comments for "unused" data from server packets.
Fix some guild and worlds packets.
Diffstat (limited to 'src/net/tmwa')
-rw-r--r--src/net/tmwa/charserverhandler.cpp4
-rw-r--r--src/net/tmwa/loginhandler.cpp2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/net/tmwa/charserverhandler.cpp b/src/net/tmwa/charserverhandler.cpp
index 69f7165ec..d08e4a091 100644
--- a/src/net/tmwa/charserverhandler.cpp
+++ b/src/net/tmwa/charserverhandler.cpp
@@ -190,7 +190,7 @@ void CharServerHandler::readPlayerData(Net::MessageIn &msg,
msg.readInt32(); // option
msg.readInt32(); // karma
msg.readInt32(); // manner
- msg.skip(2); // unknown
+ msg.readInt16(); // character points left
character->data.mAttributes[HP] = msg.readInt16();
character->data.mAttributes[MAX_HP] = msg.readInt16();
@@ -347,7 +347,7 @@ void CharServerHandler::processCharLogin(Net::MessageIn &msg)
loginData.characterSlots = static_cast<short unsigned int>(slots);
bool version = msg.readInt8() == 1 && serverVersion > 0;
- msg.skip(17); // Unused
+ msg.skip(17); // 0 Unused
delete_all(mCharacters);
mCharacters.clear();
diff --git a/src/net/tmwa/loginhandler.cpp b/src/net/tmwa/loginhandler.cpp
index bdc944d63..fba33297d 100644
--- a/src/net/tmwa/loginhandler.cpp
+++ b/src/net/tmwa/loginhandler.cpp
@@ -154,7 +154,7 @@ void LoginHandler::processServerVersion(Net::MessageIn &msg)
{
unsigned int options = msg.readInt8();
mRegistrationEnabled = options;
- msg.skip(2);
+ msg.skip(2); // 0 unused
serverVersion = msg.readInt8();
}
else