aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--code/client/cl_main.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/code/client/cl_main.c b/code/client/cl_main.c
index 2df8cb1..e05a640 100644
--- a/code/client/cl_main.c
+++ b/code/client/cl_main.c
@@ -2343,6 +2343,12 @@ void CL_Video_f( void )
char filename[ MAX_OSPATH ];
int i, last;
+ if( !clc.demoplaying )
+ {
+ Com_Printf( "The video command can only be used when playing back demos\n" );
+ return;
+ }
+
if( Cmd_Argc( ) == 2 )
{
// explicit filename