summaryrefslogtreecommitdiff
path: root/src/game.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game.cpp')
-rw-r--r--src/game.cpp10
1 files changed, 7 insertions, 3 deletions
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);