summaryrefslogtreecommitdiff
path: root/src/net/net.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/net.cpp')
-rw-r--r--src/net/net.cpp10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/net/net.cpp b/src/net/net.cpp
index 1b4bbf36..7dae6b35 100644
--- a/src/net/net.cpp
+++ b/src/net/net.cpp
@@ -133,17 +133,12 @@ void connectToServer(ServerInfo &server)
{
// TODO: Query the server about itself and choose the netcode based on
// that
-
-#ifndef MANASERV_SUPPORT
- server.type = ServerInfo::TMWATHENA;
-#else
if (server.port == 6901)
server.type = ServerInfo::TMWATHENA;
else if (server.port == 9601)
server.type = ServerInfo::MANASERV;
else
logger->error(_("Unknown Server Type! Exiting."));
-#endif
}
if (networkType == server.type && getGeneralHandler() != NULL)
@@ -159,17 +154,14 @@ void connectToServer(ServerInfo &server)
switch (server.type)
{
-#ifdef MANASERV_SUPPORT
case ServerInfo::MANASERV:
new ManaServ::GeneralHandler;
break;
-#endif
case ServerInfo::TMWATHENA:
new TmwAthena::GeneralHandler;
break;
-
default:
- // Shouldn't happen...
+ logger->error(_("Server protocol unsupported"));
break;
}