summaryrefslogtreecommitdiff
path: root/src/net/tmwa/gamehandler.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/tmwa/gamehandler.cpp
parent403792db7d005066273bcbe138afcd1a98b3144c (diff)
downloadplus-b7addc0a9a519cf9dcc3e804d9918ce4934a3e83.tar.gz
plus-b7addc0a9a519cf9dcc3e804d9918ce4934a3e83.tar.bz2
plus-b7addc0a9a519cf9dcc3e804d9918ce4934a3e83.tar.xz
plus-b7addc0a9a519cf9dcc3e804d9918ce4934a3e83.zip
Add comments for all output packets header.
Diffstat (limited to 'src/net/tmwa/gamehandler.cpp')
-rw-r--r--src/net/tmwa/gamehandler.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/net/tmwa/gamehandler.cpp b/src/net/tmwa/gamehandler.cpp
index 8815803c6..cad7a12dc 100644
--- a/src/net/tmwa/gamehandler.cpp
+++ b/src/net/tmwa/gamehandler.cpp
@@ -93,7 +93,7 @@ void GameHandler::handleMessage(Net::MessageIn &msg)
void GameHandler::mapLoadedEvent() const
{
- MessageOut outMsg(CMSG_MAP_LOADED);
+ createOutPacket(CMSG_MAP_LOADED);
}
void GameHandler::connect()
@@ -120,7 +120,7 @@ void GameHandler::connect()
}
// Send login infos
- MessageOut outMsg(CMSG_MAP_SERVER_CONNECT);
+ createOutPacket(CMSG_MAP_SERVER_CONNECT);
outMsg.writeInt32(token.account_ID, "account id");
outMsg.writeInt32(mCharID, "char id");
outMsg.writeInt32(token.session_ID1, "session id1");
@@ -156,7 +156,7 @@ void GameHandler::disconnect()
void GameHandler::quit() const
{
- MessageOut outMsg(CMSG_CLIENT_QUIT);
+ createOutPacket(CMSG_CLIENT_QUIT);
}
void GameHandler::ping(const int tick) const
@@ -167,7 +167,7 @@ void GameHandler::ping(const int tick) const
void GameHandler::disconnect2() const
{
- MessageOut outMsg(CMSG_CLIENT_DISCONNECT);
+ createOutPacket(CMSG_CLIENT_DISCONNECT);
}
void GameHandler::processMapLogin(Net::MessageIn &msg) const