summaryrefslogtreecommitdiff
path: root/src/net/eathena/pethandler.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/pethandler.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/pethandler.cpp')
-rw-r--r--src/net/eathena/pethandler.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/net/eathena/pethandler.cpp b/src/net/eathena/pethandler.cpp
index d801c422c..7ccc57283 100644
--- a/src/net/eathena/pethandler.cpp
+++ b/src/net/eathena/pethandler.cpp
@@ -100,19 +100,19 @@ void PetHandler::catchPet(const Being *const being) const
if (!being)
return;
- MessageOut outMsg(CMSG_PET_CATCH);
+ createOutPacket(CMSG_PET_CATCH);
outMsg.writeInt32(being->getId(), "monster id");
}
void PetHandler::requestPetState(const int data) const
{
- MessageOut outMsg(CMSG_PET_REQUEST_STATE);
+ createOutPacket(CMSG_PET_REQUEST_STATE);
outMsg.writeInt32(data, "param");
}
void PetHandler::setName(const std::string &name) const
{
- MessageOut outMsg(CMSG_PET_SET_NAME);
+ createOutPacket(CMSG_PET_SET_NAME);
outMsg.writeString(name, 24, "name");
}