summaryrefslogtreecommitdiff
path: root/src/game.cpp
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2009-04-05 21:50:02 -0600
committerJared Adams <jaxad0127@gmail.com>2009-04-05 21:50:02 -0600
commitbcc4695387d21f9629ab6f013aadbfe0d238aa6d (patch)
tree2e095ec94e99e788eb851a37cdf5eae68270424c /src/game.cpp
parent9078373860729cdf80db8d09cbdee478dc54ec64 (diff)
downloadmana-bcc4695387d21f9629ab6f013aadbfe0d238aa6d.tar.gz
mana-bcc4695387d21f9629ab6f013aadbfe0d238aa6d.tar.bz2
mana-bcc4695387d21f9629ab6f013aadbfe0d238aa6d.tar.xz
mana-bcc4695387d21f9629ab6f013aadbfe0d238aa6d.zip
Implement TMWServ's Admin-, Chat-, and MapHandlers
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);