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/gui/serverdialog.cpp | |
parent | 4ef35e9ef757da1db724c5d784048601144c934c (diff) | |
download | manaverse-3b537e109df901df3da4c706f827c8d3d39a7238.tar.gz manaverse-3b537e109df901df3da4c706f827c8d3d39a7238.tar.bz2 manaverse-3b537e109df901df3da4c706f827c8d3d39a7238.tar.xz manaverse-3b537e109df901df3da4c706f827c8d3d39a7238.zip |
Add basic support for eathena stable.
Can register, create char, connect to map server and get map info.
Diffstat (limited to 'src/gui/serverdialog.cpp')
-rw-r--r-- | src/gui/serverdialog.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/gui/serverdialog.cpp b/src/gui/serverdialog.cpp index c2045effa..a0cfda292 100644 --- a/src/gui/serverdialog.cpp +++ b/src/gui/serverdialog.cpp @@ -71,12 +71,19 @@ static std::string serverTypeToString(ServerInfo::Type type) return "TmwAthena"; case ServerInfo::EVOL: return "Evol"; +#ifdef EATHENA_SUPPORT + case ServerInfo::EATHENA: + return "eAthena"; +#endif #ifdef MANASERV_SUPPORT case ServerInfo::MANASERV: return "ManaServ"; #else case ServerInfo::MANASERV: #endif +#ifndef EATHENA_SUPPORT + case ServerInfo::EATHENA: +#endif default: case ServerInfo::UNKNOWN: return ""; @@ -88,6 +95,12 @@ static unsigned short defaultPortForServerType(ServerInfo::Type type) switch (type) { default: + case ServerInfo::EATHENA: +#ifdef EATHENA_SUPPORT + return 6900; +#else + return 6901; +#endif case ServerInfo::UNKNOWN: case ServerInfo::TMWATHENA: case ServerInfo::EVOL: |