From bcc4695387d21f9629ab6f013aadbfe0d238aa6d Mon Sep 17 00:00:00 2001 From: Jared Adams Date: Sun, 5 Apr 2009 21:50:02 -0600 Subject: Implement TMWServ's Admin-, Chat-, and MapHandlers --- src/game.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'src/game.cpp') diff --git a/src/game.cpp b/src/game.cpp index 4cdada3e..768b3c06 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -85,6 +85,9 @@ #include "gui/storagewindow.h" #endif +#include "net/maphandler.h" +#include "net/net.h" + #include "net/tmwserv/inventoryhandler.h" #include "net/ea/inventoryhandler.h" @@ -361,16 +364,17 @@ Game::Game(): Game::Game(Network *network): mNetwork(network), mBeingHandler(new BeingHandler(config.getValue("EnableSync", 0) == 1)), - mAdminHandler(new AdminHandler), + mAdminHandler(new EAthena::AdminHandler), mEquipmentHandler(new EquipmentHandler), mSkillHandler(new SkillHandler), #endif mPartyHandler(new PartyHandler), mBuySellHandler(new BuySellHandler), - mChatHandler(new ChatHandler), #ifdef TMWSERV_SUPPORT + mChatHandler(new TmwServ::ChatHandler), mInventoryHandler(new TmwServ::InventoryHandler), #else + mChatHandler(new EAthena::ChatHandler), mInventoryHandler(new EAthena::InventoryHandler), #endif mItemHandler(new ItemHandler), @@ -453,7 +457,7 @@ Game::Game(Network *network): * packet is handled by the older version, but its response * is ignored by the client */ - mapHandler->ping(tick_time); + Net::getMapHandler()->ping(tick_time); map_path = map_path.substr(0, map_path.rfind(".")); engine->changeMap(map_path); -- cgit v1.2.3-70-g09d2