From 9f42be5d6ca75a5b7bb2f9e3b1b6c298218579af Mon Sep 17 00:00:00 2001 From: Tim Angus Date: Tue, 29 Aug 2006 19:30:33 +0000 Subject: [PATCH] * Disable video command when not playing back a demo --- code/client/cl_main.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/code/client/cl_main.c b/code/client/cl_main.c index 2df8cb15..e05a640d 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