From ab0933b5a4c6cd3ca9f6b13bd011c7e0bf4e546e Mon Sep 17 00:00:00 2001 From: Freeyorp Date: Fri, 13 Aug 2010 13:02:45 +1200 Subject: Fix enet check macros. Not a good idea to have #if checks in a #ifdef check. Trivial fix. --- src/net/connectionhandler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/net/connectionhandler.cpp') diff --git a/src/net/connectionhandler.cpp b/src/net/connectionhandler.cpp index 314eb0f7..ec786663 100644 --- a/src/net/connectionhandler.cpp +++ b/src/net/connectionhandler.cpp @@ -46,7 +46,7 @@ bool ConnectionHandler::startListen(enet_uint16 port, enet_address_set_host(&address, listenHost.c_str()); LOG_INFO("Listening on port " << port << "..."); -#ifdef defined(ENET_VERSION) && ENET_VERSION >= ENET_CUTOFF +#if defined(ENET_VERSION) && ENET_VERSION >= ENET_CUTOFF host = enet_host_create( &address /* the address to bind the server host to */, Configuration::getValue("net_maxClients", 1000) /* allowed connections */, -- cgit v1.2.3-60-g2f50