summaryrefslogtreecommitdiff
path: root/src/net
diff options
context:
space:
mode:
Diffstat (limited to 'src/net')
-rw-r--r--src/net/net.cpp2
-rw-r--r--src/net/serverinfo.h1
2 files changed, 2 insertions, 1 deletions
diff --git a/src/net/net.cpp b/src/net/net.cpp
index 160feed2..4b28f567 100644
--- a/src/net/net.cpp
+++ b/src/net/net.cpp
@@ -154,9 +154,11 @@ void connectToServer(ServerInfo &server)
switch (server.type)
{
+#ifdef ENABLE_MANASERV
case ServerInfo::MANASERV:
new ManaServ::GeneralHandler;
break;
+#endif
case ServerInfo::TMWATHENA:
new TmwAthena::GeneralHandler;
break;
diff --git a/src/net/serverinfo.h b/src/net/serverinfo.h
index 0748430f..e709bed0 100644
--- a/src/net/serverinfo.h
+++ b/src/net/serverinfo.h
@@ -106,7 +106,6 @@ public:
return TMWATHENA;
else if (compareStrI(type, "manaserv") == 0)
return MANASERV;
-
return UNKNOWN;
}
};