From 0d18f85ec3a2b3ded337863ff1bb7ae51fd62658 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 23 Oct 2014 14:51:50 +0300 Subject: Add packet fields comments in playerhandler. --- src/net/ea/playerhandler.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/net/ea') 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: -- cgit v1.2.3-70-g09d2