summaryrefslogtreecommitdiff
path: root/src/engine.cpp
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2009-04-01 14:13:11 -0600
committerJared Adams <jaxad0127@gmail.com>2009-04-01 14:13:11 -0600
commitb987a2806dbcd87a23850901f6f0b86f0801086c (patch)
treee373f4869436f830c2cdeeeaf34a941560ded3fe /src/engine.cpp
parent6ef22b50f3d0c2410af5bd2543bedc0b3d692f83 (diff)
downloadmana-b987a2806dbcd87a23850901f6f0b86f0801086c.tar.gz
mana-b987a2806dbcd87a23850901f6f0b86f0801086c.tar.bz2
mana-b987a2806dbcd87a23850901f6f0b86f0801086c.tar.xz
mana-b987a2806dbcd87a23850901f6f0b86f0801086c.zip
Create a few more handlers for eAthena
Map, chat, and admin have been finished (to the degree they handle all existing cases).
Diffstat (limited to 'src/engine.cpp')
-rw-r--r--src/engine.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/engine.cpp b/src/engine.cpp
index 04d06e38..faa6a452 100644
--- a/src/engine.cpp
+++ b/src/engine.cpp
@@ -33,6 +33,11 @@
#include "gui/minimap.h"
#include "gui/viewport.h"
+#include "net/net.h"
+#ifdef EATHENA_SUPPORT
+#include "net/ea/maphandler.h"
+#endif
+
#include "resources/mapreader.h"
#include "resources/monsterdb.h"
#include "resources/resourcemanager.h"
@@ -134,6 +139,10 @@ bool Engine::changeMap(const std::string &mapPath)
mCurrentMap = newMap;
+ // Net::getMapHandler()->mapLoaded(mapPath);
+#ifdef EATHENA_SUPPORT
+ mapHandler->mapLoaded(mapPath);
+#endif
return true;
}