summaryrefslogtreecommitdiff
path: root/src/net/connectionhandler.cpp
diff options
context:
space:
mode:
authorFreeyorp <Freeyorp101@hotmail.com>2010-08-13 13:02:45 +1200
committerFreeyorp <Freeyorp101@hotmail.com>2010-08-13 13:02:45 +1200
commitab0933b5a4c6cd3ca9f6b13bd011c7e0bf4e546e (patch)
treee1da71ac25c849157c74ddab9735456869742113 /src/net/connectionhandler.cpp
parentb5c98b278ea09934700ca2e8f03650ea19be1fd1 (diff)
downloadmanaserv-ab0933b5a4c6cd3ca9f6b13bd011c7e0bf4e546e.tar.gz
manaserv-ab0933b5a4c6cd3ca9f6b13bd011c7e0bf4e546e.tar.bz2
manaserv-ab0933b5a4c6cd3ca9f6b13bd011c7e0bf4e546e.tar.xz
manaserv-ab0933b5a4c6cd3ca9f6b13bd011c7e0bf4e546e.zip
Fix enet check macros.
Not a good idea to have #if checks in a #ifdef check. Trivial fix.
Diffstat (limited to 'src/net/connectionhandler.cpp')
-rw-r--r--src/net/connectionhandler.cpp2
1 files changed, 1 insertions, 1 deletions
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 */,