From 3f66a1934942adf3f4e81f49fe3c18476aed0177 Mon Sep 17 00:00:00 2001 From: Yohann Ferreira Date: Wed, 26 Jan 2011 00:12:51 +0100 Subject: Prune the enet and manaserv files dependency of the 0.5 binary. Only using cmake conditions and an ifdef. This will greatly help packaging the mana 0.5 version on other distros. --- src/net/net.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/net') diff --git a/src/net/net.cpp b/src/net/net.cpp index 25dcd981..1b4bbf36 100644 --- a/src/net/net.cpp +++ b/src/net/net.cpp @@ -159,10 +159,11 @@ 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; -- cgit v1.2.3-70-g09d2