From 8ee936737482bb8f057af11c8254ae8148ae9bb7 Mon Sep 17 00:00:00 2001 From: tjw Date: Thu, 5 Apr 2007 15:26:15 +0000 Subject: * (bug 3018) Should not reset CVAR_CHEAT cvars when loading cgame/ui if they are being loaded to play a demo. This restores the normal "timedemo" cvar behaviour. * (bug 3054) The "demo" command works properly now when connected to the local server git-svn-id: svn://svn.icculus.org/quake3/trunk@1062 edf5b092-35ff-0310-97b2-ce42778d08ea --- code/client/cl_cgame.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'code/client/cl_cgame.c') diff --git a/code/client/cl_cgame.c b/code/client/cl_cgame.c index d767b8a..810f738 100644 --- a/code/client/cl_cgame.c +++ b/code/client/cl_cgame.c @@ -747,7 +747,7 @@ void CL_InitCGame( void ) { VM_Call( cgvm, CG_INIT, clc.serverMessageSequence, clc.lastExecutedServerCommand, clc.clientNum ); // reset any CVAR_CHEAT cvars registered by cgame - if ( !cl_connectedToCheatServer ) + if ( !clc.demoplaying && !cl_connectedToCheatServer ) Cvar_SetCheatState(); // we will send a usercmd this frame, which -- cgit v1.2.3