diff options
author | Andrey Nazarov <skuller@skuller.net> | 2009-10-24 13:30:49 +0000 |
---|---|---|
committer | Andrey Nazarov <skuller@skuller.net> | 2009-10-24 13:30:49 +0000 |
commit | 3c9ade8c4efe39e7705ae117e74156cc8bc5e825 (patch) | |
tree | 5d19891bf6fe5abfbd4d7f08c554a7e0318d6c71 | |
parent | a14fa9368486861e60ae2f92128e33783a469a5f (diff) |
Added more missing NET_UpdateStream calls.
-rw-r--r-- | source/mvd_client.c | 2 | ||||
-rw-r--r-- | source/sv_mvd.c | 3 |
2 files changed, 5 insertions, 0 deletions
diff --git a/source/mvd_client.c b/source/mvd_client.c index 3439e6b..70189a8 100644 --- a/source/mvd_client.c +++ b/source/mvd_client.c @@ -733,6 +733,7 @@ static void gtv_wait_start( mvd_t *mvd ) { // send ping to force server to flush write_message( gtv, GTC_PING ); + NET_UpdateStream( >v->stream ); } static qboolean gtv_read_frame( mvd_t *mvd ) { @@ -813,6 +814,7 @@ static qboolean gtv_forward_cmd( mvd_client_t *client ) { MSG_WriteByte( 0 ); write_message( gtv, GTC_STRINGCMD ); SZ_Clear( &msg_write ); + NET_UpdateStream( >v->stream ); return qtrue; } diff --git a/source/sv_mvd.c b/source/sv_mvd.c index f414105..644240f 100644 --- a/source/sv_mvd.c +++ b/source/sv_mvd.c @@ -788,6 +788,7 @@ static void suspend_streams( void ) { #if USE_ZLIB flush_stream( client, Z_SYNC_FLUSH ); #endif + NET_UpdateStream( &client->stream ); } Com_DPrintf( "Suspending MVD streams.\n" ); mvd.active = qfalse; @@ -806,6 +807,7 @@ static void resume_streams( void ) { #if USE_ZLIB flush_stream( client, Z_SYNC_FLUSH ); #endif + NET_UpdateStream( &client->stream ); } // write it to demofile @@ -1866,6 +1868,7 @@ void SV_MvdMapChanged( void ) { // send gamestate to all MVD clients FOR_EACH_ACTIVE_GTV( client ) { write_message( client, GTS_STREAM_DATA ); + NET_UpdateStream( &client->stream ); } } |