From b7addc0a9a519cf9dcc3e804d9918ce4934a3e83 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 19 Sep 2014 17:33:16 +0300 Subject: Add comments for all output packets header. --- src/net/tmwa/skillhandler.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/net/tmwa/skillhandler.cpp') diff --git a/src/net/tmwa/skillhandler.cpp b/src/net/tmwa/skillhandler.cpp index 26902f18e..05f7b0d90 100644 --- a/src/net/tmwa/skillhandler.cpp +++ b/src/net/tmwa/skillhandler.cpp @@ -77,7 +77,7 @@ void SkillHandler::handleMessage(Net::MessageIn &msg) void SkillHandler::useBeing(const int id, const int level, const int beingId) const { - MessageOut outMsg(CMSG_SKILL_USE_BEING); + createOutPacket(CMSG_SKILL_USE_BEING); outMsg.writeInt16(static_cast(id)); outMsg.writeInt16(static_cast(level)); outMsg.writeInt32(beingId); @@ -86,7 +86,7 @@ void SkillHandler::useBeing(const int id, const int level, void SkillHandler::usePos(const int id, const int level, const int x, const int y) const { - MessageOut outMsg(CMSG_SKILL_USE_POSITION); + createOutPacket(CMSG_SKILL_USE_POSITION); outMsg.writeInt16(static_cast(level)); outMsg.writeInt16(static_cast(id)); outMsg.writeInt16(static_cast(x)); @@ -97,7 +97,7 @@ void SkillHandler::usePos(const int id, const int level, const int x, const int y, const std::string &text) const { - MessageOut outMsg(CMSG_SKILL_USE_POSITION_MORE); + createOutPacket(CMSG_SKILL_USE_POSITION_MORE); outMsg.writeInt16(static_cast(level), "level"); outMsg.writeInt16(static_cast(id), "id"); outMsg.writeInt16(static_cast(x), "x"); @@ -107,7 +107,7 @@ void SkillHandler::usePos(const int id, const int level, void SkillHandler::useMap(const int id, const std::string &map) const { - MessageOut outMsg(CMSG_SKILL_USE_MAP); + createOutPacket(CMSG_SKILL_USE_MAP); outMsg.writeInt16(static_cast(id)); outMsg.writeString(map, 16); } -- cgit v1.2.3-60-g2f50