From 3b537e109df901df3da4c706f827c8d3d39a7238 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 24 Jun 2012 19:34:08 +0300 Subject: Add basic support for eathena stable. Can register, create char, connect to map server and get map info. --- src/net/serverinfo.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src/net/serverinfo.h') diff --git a/src/net/serverinfo.h b/src/net/serverinfo.h index d3c33d19f..a8480cf1e 100644 --- a/src/net/serverinfo.h +++ b/src/net/serverinfo.h @@ -36,7 +36,8 @@ public: UNKNOWN = 0, MANASERV, TMWATHENA, - EVOL + EVOL, + EATHENA, }; typedef std::pair VersionString; @@ -106,9 +107,13 @@ public: return TMWATHENA; if (compareStrI(type, "evol") == 0) return EVOL; - // Used for backward compatibility +#ifdef EATHENA_SUPPORT + else if (compareStrI(type, "eathena") == 0) + return EATHENA; +#else else if (compareStrI(type, "eathena") == 0) return TMWATHENA; +#endif #ifdef MANASERV_SUPPORT else if (compareStrI(type, "manaserv") == 0) return MANASERV; -- cgit v1.2.3-60-g2f50