summaryrefslogtreecommitdiff
path: root/src/net/serverinfo.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/serverinfo.h')
-rw-r--r--src/net/serverinfo.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/net/serverinfo.h b/src/net/serverinfo.h
index c523ecce7..c3e1ac5ad 100644
--- a/src/net/serverinfo.h
+++ b/src/net/serverinfo.h
@@ -69,7 +69,11 @@ class ServerInfo final
onlineListUrl(),
supportUrl(),
updateMirrors(),
+#ifdef EATHENA_SUPPORT
+ port(6900),
+#else
port(6901),
+#endif
version(),
save(false),
persistentIp(true)
@@ -133,10 +137,16 @@ class ServerInfo final
static Type parseType(const std::string &serverType) A_WARN_UNUSED
{
+#ifdef TMWA_SUPPORT
if (compareStrI(serverType, "tmwathena") == 0)
return TMWATHENA;
if (compareStrI(serverType, "evol") == 0)
return EVOL;
+#else
+ if (compareStrI(serverType, "tmwathena") == 0
+ || compareStrI(serverType, "evol") == 0)
+ return EATHENA;
+#endif
#ifdef EATHENA_SUPPORT
else if (compareStrI(serverType, "eathena") == 0)
return EATHENA;