diff options
author | Andrey Nazarov <skuller@skuller.net> | 2007-09-20 23:10:17 +0000 |
---|---|---|
committer | Andrey Nazarov <skuller@skuller.net> | 2007-09-20 23:10:17 +0000 |
commit | a90dcf4fb6daadcbc9388cf54d7c0e0c544b1b42 (patch) | |
tree | c6bdf747cf978c969df7bbc489f04230d45f5a8d /source/sv_init.c | |
parent | c1213b4bde16524ea07d6972c9312f8bc57d7b98 (diff) |
Added support for the new R1Q2 protocol version.
Q2PRO protocol is now versioned similar to R1Q2 protocol.
Allow "play" stuffcmd when watching a demo.
Handle clients with zero qport properly, compare IP address _and_ port.
Diffstat (limited to 'source/sv_init.c')
-rw-r--r-- | source/sv_init.c | 7 |
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" ); |