summaryrefslogtreecommitdiff
path: root/src/net/serverinfo.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-09-14 16:51:36 +0300
committerAndrei Karas <akaras@inbox.ru>2014-09-14 16:51:36 +0300
commitda98d12637db106b87341560cc72ca6207b2d12f (patch)
treec79f1c3389f38ec878fc2dfc4729839242e2e81c /src/net/serverinfo.h
parent8a616021cbefff5f62b0ca55cf535130c8c1b5f0 (diff)
downloadmanaplus-da98d12637db106b87341560cc72ca6207b2d12f.tar.gz
manaplus-da98d12637db106b87341560cc72ca6207b2d12f.tar.bz2
manaplus-da98d12637db106b87341560cc72ca6207b2d12f.tar.xz
manaplus-da98d12637db106b87341560cc72ca6207b2d12f.zip
Add configure and cmake option to enable/disable compilation for tmwa/evol.
Tmwa/evol by default enabled.
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;