diff options
author | Andrey Nazarov <skuller@skuller.net> | 2008-06-29 12:32:32 +0000 |
---|---|---|
committer | Andrey Nazarov <skuller@skuller.net> | 2008-06-29 12:32:32 +0000 |
commit | e826e5f176f21cd18b3bbc22887a266835ada57c (patch) | |
tree | d25a84a84f9168b16a77fe4ed8b169c9611bbb02 /source/sv_main.c | |
parent | 491f1c100e860c45a5d2aa358d58f777cd1cf895 (diff) |
Added client and server side support for 32-bit solids.
New R1Q2 and Q2PRO minor protocol versions, 1905 and 1014.
Use environment variables for game and server features negotiation.
Relax restrictions on quake paths when searching inside pak files.
Made OSS subsystem cvar names consistent with core sound system conventions.
Misc latched cvar handling changes.
Diffstat (limited to 'source/sv_main.c')
-rw-r--r-- | source/sv_main.c | 44 |
1 files changed, 16 insertions, 28 deletions
diff --git a/source/sv_main.c b/source/sv_main.c index 2beeb23..4ece3da 100644 --- a/source/sv_main.c +++ b/source/sv_main.c @@ -86,7 +86,7 @@ cvar_t *sv_status_show; cvar_t *sv_uptime; cvar_t *sv_badauth_time; -cvar_t *g_features; +//cvar_t *g_features; //============================================================================ @@ -1795,12 +1795,10 @@ void SV_Init( void ) { sv_badauth_time = Cvar_Get( "sv_badauth_time", "1", 0 ); sv_badauth_time->changed = sv_badauth_time_changed; - Cvar_Get( "sv_features", va( "%d", GMF_CLIENTNUM|GMF_MVDSPEC ), CVAR_ROM ); - g_features = Cvar_Ref( "g_features" ); + //Cvar_Get( "sv_features", va( "%d", GMF_CLIENTNUM|GMF_MVDSPEC ), CVAR_ROM ); + //g_features = Cvar_Ref( "g_features" ); - // // set up default pmove parameters - // sv_pmp.maxspeed = 300; //sv_pmp.upspeed = 350; sv_pmp.friction = 6; @@ -1824,6 +1822,7 @@ static void SV_FinalMessage( const char *message, int cmd ) { tcpClient_t *t, *tnext; netchan_t *netchan; uint16_t length; + int i; MSG_WriteByte( svc_print ); MSG_WriteByte( PRINT_HIGH ); @@ -1832,29 +1831,18 @@ static void SV_FinalMessage( const char *message, int cmd ) { // send it twice // stagger the packets to crutch operating system limited buffers - - FOR_EACH_CLIENT( client ) { - if( client->state == cs_zombie ) { - continue; - } - netchan = client->netchan; - while( netchan->fragment_pending ) { - netchan->TransmitNextFragment( netchan ); - } - netchan->Transmit( netchan, msg_write.cursize, msg_write.data ); - } - - FOR_EACH_CLIENT( client ) { - if( client->state == cs_zombie ) { - continue; - } - netchan = client->netchan; - while( netchan->fragment_pending ) { - netchan->TransmitNextFragment( netchan ); - } - netchan->Transmit( netchan, msg_write.cursize, msg_write.data ); - } - SZ_Clear( &msg_write ); + for( i = 0; i < 2; i++ ) { + FOR_EACH_CLIENT( client ) { + if( client->state == cs_zombie ) { + continue; + } + netchan = client->netchan; + while( netchan->fragment_pending ) { + netchan->TransmitNextFragment( netchan ); + } + netchan->Transmit( netchan, msg_write.cursize, msg_write.data ); + } + } // send EOF to MVD clients length = 0; |