summaryrefslogtreecommitdiff
path: root/src/net/net.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-06-24 19:34:08 +0300
committerAndrei Karas <akaras@inbox.ru>2012-06-24 21:41:20 +0300
commit3b537e109df901df3da4c706f827c8d3d39a7238 (patch)
treeae5a83f71954aaeb45ce3f8d609e6f4a8dc0678c /src/net/net.cpp
parent4ef35e9ef757da1db724c5d784048601144c934c (diff)
downloadmanaplus-3b537e109df901df3da4c706f827c8d3d39a7238.tar.gz
manaplus-3b537e109df901df3da4c706f827c8d3d39a7238.tar.bz2
manaplus-3b537e109df901df3da4c706f827c8d3d39a7238.tar.xz
manaplus-3b537e109df901df3da4c706f827c8d3d39a7238.zip
Add basic support for eathena stable.
Can register, create char, connect to map server and get map info.
Diffstat (limited to 'src/net/net.cpp')
-rw-r--r--src/net/net.cpp15
1 files changed, 14 insertions, 1 deletions
diff --git a/src/net/net.cpp b/src/net/net.cpp
index 75bc35b72..bfa46d086 100644
--- a/src/net/net.cpp
+++ b/src/net/net.cpp
@@ -42,6 +42,10 @@
#include "net/tmwa/generalhandler.h"
+#ifdef EATHENA_SUPPORT
+#include "net/eathena/generalhandler.h"
+#endif
+
#ifdef MANASERV_SUPPORT
#include "net/manaserv/generalhandler.h"
#endif
@@ -165,11 +169,20 @@ void connectToServer(const ServerInfo &server)
case ServerInfo::EVOL:
new TmwAthena::GeneralHandler;
break;
+ case ServerInfo::EATHENA:
+#ifdef EATHENA_SUPPORT
+ new EAthena::GeneralHandler;
+#else
+ new TmwAthena::GeneralHandler;
+#endif
+ break;
case ServerInfo::MANASERV:
#ifdef MANASERV_SUPPORT
new ManaServ::GeneralHandler;
- break;
+#else
+ new TmwAthena::GeneralHandler;
#endif
+ break;
case ServerInfo::TMWATHENA:
case ServerInfo::UNKNOWN:
default: