summaryrefslogtreecommitdiff
path: root/src/net/eathena/charserverhandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-10-23 17:03:26 +0300
committerAndrei Karas <akaras@inbox.ru>2014-10-23 19:46:20 +0300
commitc47fd48bc3deefb774b0c809967f26632dce6a3a (patch)
tree9b3c9d2fa5113d77f815885488c60ab4c82d66b8 /src/net/eathena/charserverhandler.cpp
parent2ddcddafa6dbac049cefef4ee105eaff5bb605fc (diff)
downloadplus-c47fd48bc3deefb774b0c809967f26632dce6a3a.tar.gz
plus-c47fd48bc3deefb774b0c809967f26632dce6a3a.tar.bz2
plus-c47fd48bc3deefb774b0c809967f26632dce6a3a.tar.xz
plus-c47fd48bc3deefb774b0c809967f26632dce6a3a.zip
Add packet fields comments in charserverhandler.
Diffstat (limited to 'src/net/eathena/charserverhandler.cpp')
-rw-r--r--src/net/eathena/charserverhandler.cpp15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/net/eathena/charserverhandler.cpp b/src/net/eathena/charserverhandler.cpp
index 3329f919b..760683073 100644
--- a/src/net/eathena/charserverhandler.cpp
+++ b/src/net/eathena/charserverhandler.cpp
@@ -183,10 +183,10 @@ void CharServerHandler::readPlayerData(Net::MessageIn &msg,
jobStat.base = temp;
jobStat.mod = temp;
- const int shoes = msg.readInt16(); // look like unused
- const int gloves = msg.readInt16(); // look like unused
- const int cape = msg.readInt16(); // look like unused
- const int misc1 = msg.readInt16(); // look like unused
+ const int shoes = msg.readInt16("shoes");
+ const int gloves = msg.readInt16("gloves");
+ const int cape = msg.readInt16("cape");
+ const int misc1 = msg.readInt16("misc1");
msg.readInt32("option");
tempPlayer->setKarma(msg.readInt32("karma"));
@@ -196,7 +196,7 @@ void CharServerHandler::readPlayerData(Net::MessageIn &msg,
data.mAttributes[Attributes::HP] = msg.readInt16("hp");
data.mAttributes[Attributes::MAX_HP] = msg.readInt16("max hp");
- msg.skip(4, "unused");
+ msg.readInt32("unused");
data.mAttributes[Attributes::MP] = msg.readInt16("mp/sp");
data.mAttributes[Attributes::MAX_MP] = msg.readInt16("max mp/sp");
@@ -221,7 +221,7 @@ void CharServerHandler::readPlayerData(Net::MessageIn &msg,
msg.readInt16("hair color")));
const int misc2 = msg.readInt16("clothes color");
- tempPlayer->setName(msg.readString(24));
+ tempPlayer->setName(msg.readString(24, "name"));
character->dummy = tempPlayer;
@@ -261,7 +261,8 @@ void CharServerHandler::chooseCharacter(Net::Character *const character)
mCharSelectDialog = nullptr;
createOutPacket(CMSG_CHAR_SELECT);
- outMsg.writeInt8(static_cast<unsigned char>(mSelectedCharacter->slot));
+ outMsg.writeInt8(static_cast<unsigned char>(
+ mSelectedCharacter->slot), "slot");
}
void CharServerHandler::newCharacter(const std::string &name, const int slot,