From 9c8761e1acd38ca7b8b4acdd460c1b61a37a635f Mon Sep 17 00:00:00 2001 From: Andrey Nazarov Date: Mon, 26 Nov 2007 19:03:18 +0000 Subject: Added `suspend' command useful for temporary pausing demo recording. Brought CL_SetClientTime back to original Q2 style. This removed delays during demo playback caused by several frames dropped in a row. Make sure empty demo messages are never written. Enabled USE_AUTOREPLY flag in `configure' script. --- source/cl_parse.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'source/cl_parse.c') diff --git a/source/cl_parse.c b/source/cl_parse.c index d9dde76..fdba906 100644 --- a/source/cl_parse.c +++ b/source/cl_parse.c @@ -1081,6 +1081,10 @@ static void CL_ParseConfigString (void) { Com_Printf( " %i \"%s\"\n", i, Q_FormatString( s ) ); } + if( cls.demorecording && cls.demopaused ) { + Q_SetBit( cl.dcs, i ); + } + CL_ConfigString( i, s ); } @@ -1526,7 +1530,7 @@ void CL_ParseServerMessage( void ) { } // copy protocol invariant stuff - if( cls.demorecording ) { + if( cls.demorecording && !cls.demopaused ) { SZ_Write( &cls.demobuff, msg_read.data + readcount, msg_read.readcount - readcount ); } @@ -1535,7 +1539,7 @@ void CL_ParseServerMessage( void ) { // // if recording demos, write the message out // - if( cls.demorecording ) { + if( cls.demorecording && !cls.demopaused ) { CL_WriteDemoMessage( &cls.demobuff ); } } -- cgit v1.2.3