diff options
author | Jared Adams <jaxad0127@gmail.com> | 2009-11-03 12:06:48 -0700 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2009-11-03 12:06:48 -0700 |
commit | e07e2a6db902f2ce0095b65708a98fa4dbf40aa0 (patch) | |
tree | b91b3e3d3f06199dcc34e32834941964a263e0be /src/net/manaserv/gamehandler.cpp | |
parent | e2897e4a7cb7eb0c4a7e46d72a9a19b909368c26 (diff) | |
download | mana-e07e2a6db902f2ce0095b65708a98fa4dbf40aa0.tar.gz mana-e07e2a6db902f2ce0095b65708a98fa4dbf40aa0.tar.bz2 mana-e07e2a6db902f2ce0095b65708a98fa4dbf40aa0.tar.xz mana-e07e2a6db902f2ce0095b65708a98fa4dbf40aa0.zip |
Simplify ManaServ netcode some more
Diffstat (limited to 'src/net/manaserv/gamehandler.cpp')
-rw-r--r-- | src/net/manaserv/gamehandler.cpp | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/src/net/manaserv/gamehandler.cpp b/src/net/manaserv/gamehandler.cpp index 1916d492..306dc5e6 100644 --- a/src/net/manaserv/gamehandler.cpp +++ b/src/net/manaserv/gamehandler.cpp @@ -23,11 +23,9 @@ #include "net/manaserv/chathandler.h" #include "net/manaserv/connection.h" +#include "net/manaserv/messageout.h" #include "net/manaserv/protocol.h" -#include "net/manaserv/chatserver/chatserver.h" -#include "net/manaserv/gameserver/gameserver.h" - #include "main.h" Net::GameHandler *gameHandler; @@ -99,7 +97,11 @@ void GameHandler::disconnect() void GameHandler::inGame() { - GameServer::connect(gameServerConnection, netToken); + + MessageOut msg(PGMSG_CONNECT); + msg.writeString(netToken, 32); + gameServerConnection->send(msg); + chatHandler->connect(); } @@ -115,7 +117,9 @@ void GameHandler::who() void GameHandler::quit() { - // TODO + //MessageOut msg(PGMSG_DISCONNECT); + //msg.writeInt8((unsigned char) reconnectAccount); + //gameServerConnection->send(msg); } void GameHandler::ping(int tick) |