* (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.
This commit is contained in:
Tony J. White = committed 2007-03-02 17:32:22 +00:00
1 parent ddc848dced
commit 2218a4ea67
4 files changed
+12 -1

No files matched your search

+4
View File
@@ -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 ) {