summaryrefslogtreecommitdiff
path: root/src/gui/windows/serverdialog.cpp
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/gui/windows/serverdialog.cpp
parent8a616021cbefff5f62b0ca55cf535130c8c1b5f0 (diff)
downloadmv-da98d12637db106b87341560cc72ca6207b2d12f.tar.gz
mv-da98d12637db106b87341560cc72ca6207b2d12f.tar.bz2
mv-da98d12637db106b87341560cc72ca6207b2d12f.tar.xz
mv-da98d12637db106b87341560cc72ca6207b2d12f.zip
Add configure and cmake option to enable/disable compilation for tmwa/evol.
Tmwa/evol by default enabled.
Diffstat (limited to 'src/gui/windows/serverdialog.cpp')
-rw-r--r--src/gui/windows/serverdialog.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gui/windows/serverdialog.cpp b/src/gui/windows/serverdialog.cpp
index 2b1996bdb..23a066ade 100644
--- a/src/gui/windows/serverdialog.cpp
+++ b/src/gui/windows/serverdialog.cpp
@@ -66,10 +66,16 @@ static std::string serverTypeToString(const ServerInfo::Type type)
{
switch (type)
{
+#ifdef TMWA_SUPPORT
case ServerInfo::TMWATHENA:
return "TmwAthena";
case ServerInfo::EVOL:
return "Evol";
+#else
+ case ServerInfo::TMWATHENA:
+ case ServerInfo::EVOL:
+ return "";
+#endif
case ServerInfo::EATHENA:
#ifdef EATHENA_SUPPORT
return "eAthena";
@@ -90,8 +96,10 @@ static uint16_t defaultPortForServerType(const ServerInfo::Type type)
return 6900;
#endif
case ServerInfo::UNKNOWN:
+#ifdef TMWA_SUPPORT
case ServerInfo::TMWATHENA:
case ServerInfo::EVOL:
+#endif
return 6901;
}
}