diff options
author | Andrey Nazarov <skuller@skuller.net> | 2008-01-06 18:34:29 +0000 |
---|---|---|
committer | Andrey Nazarov <skuller@skuller.net> | 2008-01-06 18:34:29 +0000 |
commit | 79d1509407240c0d549843009dba4b37b64c2a9b (patch) | |
tree | 1b36d35d3add67a082262f7355778dacc371a171 /source/sv_main.c | |
parent | 0746f5d59cbf076310feca52581833a7b45f9663 (diff) |
Fixed invalid client ID being displayed by `status' command on GTV servers.
Fixed stupid Sys_Sleep bug on Unix systems.
Draw `Loading anticheat...' string in connection screen.
Added Sys_GetAntiCheatAPI stub into sys_unix.c for testing purposes.
Diffstat (limited to 'source/sv_main.c')
-rw-r--r-- | source/sv_main.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/source/sv_main.c b/source/sv_main.c index 3488a48..6a4b69c 100644 --- a/source/sv_main.c +++ b/source/sv_main.c @@ -777,7 +777,7 @@ static void SVC_DirectConnect( void ) { // this is the only place a client_t is ever initialized memset( newcl, 0, sizeof( *newcl ) ); number = newcl - svs.udp_client_pool; - newcl->number = number; + newcl->number = newcl->slot = number; newcl->challenge = challenge; // save challenge for checksumming newcl->protocol = protocol; newcl->version = version; @@ -939,8 +939,7 @@ static void SVC_RemoteCommand( void ) { Com_Printf( "Rcon from %s:\n%s\n", NET_AdrToString( &net_from ), string ); - Com_BeginRedirect( RD_PACKET, sv_outputbuf, SV_OUTPUTBUF_LENGTH, - SV_FlushRedirect ); + SV_BeginRedirect( RD_PACKET ); Cmd_ExecuteString( string ); @@ -1728,10 +1727,6 @@ void SV_Init( void ) { sv_badauth_time = Cvar_Get( "sv_badauth_time", "1", 0 ); sv_badauth_time->changed = sv_badauth_time_changed; - SV_RateInit( &svs.ratelimit_status, sv_status_limit->integer, 1000 ); - SV_RateInit( &svs.ratelimit_badpass, 1, sv_badauth_time->value * 1000 ); - SV_RateInit( &svs.ratelimit_badrcon, 1, sv_badauth_time->value * 1000 ); - // // set up default pmove parameters // |