diff options
author | Philipp Sehmisch <crush@themanaworld.org> | 2009-02-24 01:12:46 +0100 |
---|---|---|
committer | Philipp Sehmisch <crush@themanaworld.org> | 2009-02-24 01:12:46 +0100 |
commit | f207bb487da57911350e037d5f894a037fbd74eb (patch) | |
tree | 872c96c7eeb1d4b8c3b8c83d76c9095ab445c1a3 /src/net | |
parent | 14d0744bc55eaa147d3949891411db5914e2d3ec (diff) | |
download | manaserv-f207bb487da57911350e037d5f894a037fbd74eb.tar.gz manaserv-f207bb487da57911350e037d5f894a037fbd74eb.tar.bz2 manaserv-f207bb487da57911350e037d5f894a037fbd74eb.tar.xz manaserv-f207bb487da57911350e037d5f894a037fbd74eb.zip |
Made a lot of hard-coded values configuration options
Diffstat (limited to 'src/net')
-rw-r--r-- | src/net/connectionhandler.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/net/connectionhandler.cpp b/src/net/connectionhandler.cpp index 3f3bb72a..123dc0b7 100644 --- a/src/net/connectionhandler.cpp +++ b/src/net/connectionhandler.cpp @@ -23,6 +23,7 @@ #include "net/connectionhandler.hpp" #include "defines.h" +#include "common/configuration.hpp" #include "net/bandwidth.hpp" #include "net/messagein.hpp" #include "net/messageout.hpp" @@ -38,7 +39,7 @@ bool ConnectionHandler::startListen(enet_uint16 port) LOG_INFO("Listening on port " << port << "..."); host = enet_host_create( &address /* the address to bind the server host to */, - MAX_CLIENTS /* allow up to MAX_CLIENTS connections */, + Configuration::getValue("net_maxClients", 1000) /* allowed connections */, 0 /* assume any amount of incoming bandwidth */, 0 /* assume any amount of outgoing bandwidth */); |