diff options
author | Andrey Nazarov <skuller@skuller.net> | 2007-11-26 19:03:18 +0000 |
---|---|---|
committer | Andrey Nazarov <skuller@skuller.net> | 2007-11-26 19:03:18 +0000 |
commit | 9c8761e1acd38ca7b8b4acdd460c1b61a37a635f (patch) | |
tree | 14484e1a903862eccb221b1219def5f1492db6cc /source/cl_parse.c | |
parent | 85f8d29b968454e29280bb5819742c570ef6c41b (diff) |
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.
Diffstat (limited to 'source/cl_parse.c')
-rw-r--r-- | source/cl_parse.c | 8 |
1 files changed, 6 insertions, 2 deletions
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 ); } } |