summaryrefslogtreecommitdiff
path: root/source/cl_demo.c
diff options
context:
space:
mode:
authorAndrey Nazarov <skuller@skuller.net>2009-04-22 23:40:03 +0000
committerAndrey Nazarov <skuller@skuller.net>2009-04-22 23:40:03 +0000
commit275f310df767a57b8cf409acdcbd14c63cb90df9 (patch)
tree3b59e2751c32b2f15fcfabb1af8b03e702cd5230 /source/cl_demo.c
parent385ccd0e9a518933019a8c6f1fecad2ae660b766 (diff)
Don't execute ‘cl_beginmapcmd’, ‘cl_changemapcmd’ and ‘cl_disconnectcmd’ triggers when playing back demos.
Fixed automatic restart of sound subsystem after cvar change not working randomly. Don't crash in CL_Disconnect() on dedicated server exit. Added ‘sv_redirect_address’ variable. Fixed ‘\r’ char not stripped properly from filename when processing ‘\include’ directive in AC config files. Made AC config parser compliant with reference format as defined by R1Q2 implementation. Updated documentation.
Diffstat (limited to 'source/cl_demo.c')
-rw-r--r--source/cl_demo.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/source/cl_demo.c b/source/cl_demo.c
index eec20e9..dff6041 100644
--- a/source/cl_demo.c
+++ b/source/cl_demo.c
@@ -241,7 +241,11 @@ void CL_Stop_f( void ) {
cls.demo.recording = 0;
cls.demo.paused = qfalse;
- Com_Printf( "Stopped demo (%u bytes written).\n", msglen );
+ if( msglen == INVALID_LENGTH ) {
+ Com_Printf( "Stopped demo.\n" );
+ } else {
+ Com_Printf( "Stopped demo (%u bytes written).\n", msglen );
+ }
}
/*