diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-06-24 19:34:08 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-06-24 21:41:20 +0300 |
commit | 3b537e109df901df3da4c706f827c8d3d39a7238 (patch) | |
tree | ae5a83f71954aaeb45ce3f8d609e6f4a8dc0678c /src/net/serverinfo.h | |
parent | 4ef35e9ef757da1db724c5d784048601144c934c (diff) | |
download | plus-3b537e109df901df3da4c706f827c8d3d39a7238.tar.gz plus-3b537e109df901df3da4c706f827c8d3d39a7238.tar.bz2 plus-3b537e109df901df3da4c706f827c8d3d39a7238.tar.xz plus-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/serverinfo.h')
-rw-r--r-- | src/net/serverinfo.h | 9 |
1 files changed, 7 insertions, 2 deletions
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<int, std::string> 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; |