* Disable video command when not playing back a demo

This commit is contained in:
Tim Angus 2006-08-29 19:30:33 +00:00
parent 01d057967f
commit 9f42be5d6c

View file

@ -2343,6 +2343,12 @@ void CL_Video_f( void )
char filename[ MAX_OSPATH ]; char filename[ MAX_OSPATH ];
int i, last; 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 ) if( Cmd_Argc( ) == 2 )
{ {
// explicit filename // explicit filename