From ca342d3fbdc5796c80452bd0a1abbe1ecc7937f0 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 23 Oct 2014 22:27:50 +0300 Subject: Add packet fields comments in skillhandler. --- src/net/eathena/skillhandler.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'src/net/eathena/skillhandler.cpp') diff --git a/src/net/eathena/skillhandler.cpp b/src/net/eathena/skillhandler.cpp index 73a3793ef..b62f04440 100644 --- a/src/net/eathena/skillhandler.cpp +++ b/src/net/eathena/skillhandler.cpp @@ -116,19 +116,19 @@ void SkillHandler::useBeing(const int id, const int level, const int beingId) const { createOutPacket(CMSG_SKILL_USE_BEING); - outMsg.writeInt16(static_cast(id)); - outMsg.writeInt16(static_cast(level)); - outMsg.writeInt32(beingId); + outMsg.writeInt16(static_cast(id), "skill id"); + outMsg.writeInt16(static_cast(level), "skill level"); + outMsg.writeInt32(beingId, "target id"); } void SkillHandler::usePos(const int id, const int level, const int x, const int y) const { createOutPacket(CMSG_SKILL_USE_POSITION); - outMsg.writeInt16(static_cast(level)); - outMsg.writeInt16(static_cast(id)); - outMsg.writeInt16(static_cast(x)); - outMsg.writeInt16(static_cast(y)); + outMsg.writeInt16(static_cast(level), "skill level"); + outMsg.writeInt16(static_cast(id), "skill id"); + outMsg.writeInt16(static_cast(x), "x"); + outMsg.writeInt16(static_cast(y), "y"); } void SkillHandler::usePos(const int id, const int level, @@ -146,8 +146,8 @@ void SkillHandler::usePos(const int id, const int level, void SkillHandler::useMap(const int id, const std::string &map) const { createOutPacket(CMSG_SKILL_USE_MAP); - outMsg.writeInt16(static_cast(id)); - outMsg.writeString(map, 16); + outMsg.writeInt16(static_cast(id), "skill id"); + outMsg.writeString(map, 16, "map name"); } void SkillHandler::processPlayerSkills(Net::MessageIn &msg) -- cgit v1.2.3-70-g09d2