* (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 = 2007-03-02 17:32:22 +00:00
parent ddc848dced
commit 2218a4ea67
4 changed files with 12 additions and 1 deletions

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 ) {