summaryrefslogtreecommitdiff
path: root/src/net/tmwa/gamehandler.cpp
diff options
context:
space:
mode:
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