aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortma <tma@edf5b092-35ff-0310-97b2-ce42778d08ea>2006-08-29 19:30:33 +0000
committertma <tma@edf5b092-35ff-0310-97b2-ce42778d08ea>2006-08-29 19:30:33 +0000
commit1dfbd250b99d1d2875e661f3a7c09d616ff471cc (patch)
tree813732c80ed6dfed1c795022090d96edeca3b7aa
parentdbe1df6d2ec95e681153e37c003f195259b6b54d (diff)
downloadioquake3-aero-1dfbd250b99d1d2875e661f3a7c09d616ff471cc.tar.gz
ioquake3-aero-1dfbd250b99d1d2875e661f3a7c09d616ff471cc.zip
* Disable video command when not playing back a demo
git-svn-id: svn://svn.icculus.org/quake3/trunk@881 edf5b092-35ff-0310-97b2-ce42778d08ea
-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