From d13b3695113e9843c50b8c9712dabd9df2a4d442 Mon Sep 17 00:00:00 2001 From: tjw Date: Fri, 2 Mar 2007 17:32:22 +0000 Subject: * (bug 3018) need to call Cvar_SetCheatState() after CG_INIT and UI_INIT to override user-defined cvar values for CVAR_CHEAT cvars that could be registered in cgame and ui. git-svn-id: svn://svn.icculus.org/quake3/trunk@1048 edf5b092-35ff-0310-97b2-ce42778d08ea --- code/client/cl_ui.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'code/client/cl_ui.c') diff --git a/code/client/cl_ui.c b/code/client/cl_ui.c index 45c0c37..9345647 100644 --- a/code/client/cl_ui.c +++ b/code/client/cl_ui.c @@ -1171,6 +1171,10 @@ void CL_InitUI( void ) { // init for this gamestate VM_Call( uivm, UI_INIT, (cls.state >= CA_AUTHORIZING && cls.state < CA_ACTIVE) ); } + + // reset any CVAR_CHEAT cvars registered by ui + if ( !cl_connectedToCheatServer ) + Cvar_SetCheatState(); } qboolean UI_usesUniqueCDKey( void ) { -- cgit v1.2.3