summaryrefslogtreecommitdiff
path: root/src/net/eathena/skillhandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-09-19 17:33:16 +0300
committerAndrei Karas <akaras@inbox.ru>2014-09-19 17:33:16 +0300
commitb7addc0a9a519cf9dcc3e804d9918ce4934a3e83 (patch)
treeeed5cd349f7e9db512fd1e940ed7b070df1c6a35 /src/net/eathena/skillhandler.cpp
parent403792db7d005066273bcbe138afcd1a98b3144c (diff)
downloadmanaverse-b7addc0a9a519cf9dcc3e804d9918ce4934a3e83.tar.gz
manaverse-b7addc0a9a519cf9dcc3e804d9918ce4934a3e83.tar.bz2
manaverse-b7addc0a9a519cf9dcc3e804d9918ce4934a3e83.tar.xz
manaverse-b7addc0a9a519cf9dcc3e804d9918ce4934a3e83.zip
Add comments for all output packets header.
Diffstat (limited to 'src/net/eathena/skillhandler.cpp')
-rw-r--r--src/net/eathena/skillhandler.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/net/eathena/skillhandler.cpp b/src/net/eathena/skillhandler.cpp
index 9846a6c2a..77e87d64a 100644
--- a/src/net/eathena/skillhandler.cpp
+++ b/src/net/eathena/skillhandler.cpp
@@ -85,7 +85,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<int16_t>(id));
outMsg.writeInt16(static_cast<int16_t>(level));
outMsg.writeInt32(beingId);
@@ -94,7 +94,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<int16_t>(level));
outMsg.writeInt16(static_cast<int16_t>(id));
outMsg.writeInt16(static_cast<int16_t>(x));
@@ -105,7 +105,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<int16_t>(level), "level");
outMsg.writeInt16(static_cast<int16_t>(id), "id");
outMsg.writeInt16(static_cast<int16_t>(x), "x");
@@ -115,7 +115,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<int16_t>(id));
outMsg.writeString(map, 16);
}