summaryrefslogtreecommitdiff
path: root/src/net/ea
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-10-23 14:51:50 +0300
committerAndrei Karas <akaras@inbox.ru>2014-10-23 19:46:19 +0300
commit0d18f85ec3a2b3ded337863ff1bb7ae51fd62658 (patch)
tree0ce7538e929b06ee693b096323c9e0d6c9ae6d91 /src/net/ea
parent1bfa2fef834bf52155b25e79bc4742363ae1ceac (diff)
downloadplus-0d18f85ec3a2b3ded337863ff1bb7ae51fd62658.tar.gz
plus-0d18f85ec3a2b3ded337863ff1bb7ae51fd62658.tar.bz2
plus-0d18f85ec3a2b3ded337863ff1bb7ae51fd62658.tar.xz
plus-0d18f85ec3a2b3ded337863ff1bb7ae51fd62658.zip
Add packet fields comments in playerhandler.
Diffstat (limited to 'src/net/ea')
-rw-r--r--src/net/ea/playerhandler.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/net/ea/playerhandler.cpp b/src/net/ea/playerhandler.cpp
index 3d25c83d0..82d9139ee 100644
--- a/src/net/ea/playerhandler.cpp
+++ b/src/net/ea/playerhandler.cpp
@@ -102,9 +102,9 @@ Vector PlayerHandler::getDefaultWalkSpeed() const
void PlayerHandler::processPlayerWarp(Net::MessageIn &msg)
{
BLOCK_START("PlayerHandler::processPlayerWarp")
- std::string mapPath = msg.readString(16);
- int x = msg.readInt16();
- int y = msg.readInt16();
+ std::string mapPath = msg.readString(16, "map name");
+ int x = msg.readInt16("x");
+ int y = msg.readInt16("y");
logger->log("Warping to %s (%d, %d)", mapPath.c_str(), x, y);
@@ -228,9 +228,9 @@ void PlayerHandler::processPlayerStatUpdate3(Net::MessageIn &msg)
void PlayerHandler::processPlayerStatUpdate4(Net::MessageIn &msg)
{
BLOCK_START("PlayerHandler::processPlayerStatUpdate4")
- const int type = msg.readInt16();
- const uint8_t ok = msg.readUInt8();
- const int value = msg.readUInt8();
+ const int type = msg.readInt16("type");
+ const uint8_t ok = msg.readUInt8("flag");
+ const int value = msg.readUInt8("value");
if (ok != 1)
{
@@ -258,7 +258,7 @@ void PlayerHandler::processPlayerStatUpdate6(Net::MessageIn &msg)
void PlayerHandler::processPlayerArrowMessage(Net::MessageIn &msg)
{
BLOCK_START("PlayerHandler::processPlayerArrowMessage")
- const int type = msg.readInt16();
+ const int type = msg.readInt16("type");
switch (type)
{
case 0: