diff options
author | Jared Adams <jaxad0127@gmail.com> | 2009-04-02 21:25:25 -0600 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2009-04-02 21:25:25 -0600 |
commit | 4916370e6130bfee7eb9ae486f03391d2214ecf4 (patch) | |
tree | 69311c3f543b538f4cd8e619d367d3ef22f6e43c /src/game.cpp | |
parent | 22f19d7a201abe8f6df69b82ebd6dce55c3b1655 (diff) | |
download | mana-4916370e6130bfee7eb9ae486f03391d2214ecf4.tar.gz mana-4916370e6130bfee7eb9ae486f03391d2214ecf4.tar.bz2 mana-4916370e6130bfee7eb9ae486f03391d2214ecf4.tar.xz mana-4916370e6130bfee7eb9ae486f03391d2214ecf4.zip |
Make eAthena's CharHandler
Also add ping to MapHandler and fill in eAthena's MapHandler's connect
method.
Diffstat (limited to 'src/game.cpp')
-rw-r--r-- | src/game.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/game.cpp b/src/game.cpp index 8c886793..ca436409 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -100,7 +100,6 @@ #include "net/tmwserv/partyhandler.h" #else #include "net/ea/gui/partytab.h" -#include "net/ea/network.h" #include "net/ea/adminhandler.h" #include "net/ea/chathandler.h" #include "net/ea/beinghandler.h" @@ -110,12 +109,11 @@ #include "net/ea/itemhandler.h" #include "net/ea/maphandler.h" #include "net/ea/npchandler.h" +#include "net/ea/network.h" #include "net/ea/playerhandler.h" #include "net/ea/partyhandler.h" #include "net/ea/tradehandler.h" -#include "net/ea/protocol.h" #include "net/ea/skillhandler.h" -#include "net/messageout.h" #endif #include "resources/imagewriter.h" @@ -446,8 +444,7 @@ Game::Game(Network *network): * packet is handled by the older version, but its response * is ignored by the client */ - MessageOut msg(CMSG_CLIENT_PING); - msg.writeInt32(tick_time); + mapHandler->ping(tick_time); map_path = map_path.substr(0, map_path.rfind(".")); engine->changeMap(map_path); |