* (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:
parent
ddc848dced
commit
2218a4ea67
4 changed files with 12 additions and 1 deletions
|
@ -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 ) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue