summaryrefslogtreecommitdiff
path: root/source/sv_init.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/sv_init.c')
-rw-r--r--source/sv_init.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/source/sv_init.c b/source/sv_init.c
index eb65e3a..142d593 100644
--- a/source/sv_init.c
+++ b/source/sv_init.c
@@ -224,11 +224,16 @@ void SV_InitGame( qboolean ismvd ){
Cvar_ClampInteger( sv_reserved_slots, 0, sv_maxclients->integer - 1 );
+ // enable networking
if( sv_maxclients->integer > 1 ) {
NET_Config( NET_SERVER );
if( sv_http_enable->integer ) {
- if( NET_Listen( qtrue ) == NET_ERROR ) {
+ if( NET_Listen( qtrue ) == NET_OK ) {
+ Cvar_ClampInteger( sv_http_minclients, 0,
+ sv_http_maxclients->integer );
+// svs.httppool =
+ } else {
Com_EPrintf( "%s while opening server TCP port.\n",
NET_ErrorString() );
Cvar_Set( "sv_http_enable", "0" );