* (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
|
@ -746,6 +746,10 @@ void CL_InitCGame( void ) {
|
|||
// otherwise server commands sent just before a gamestate are dropped
|
||||
VM_Call( cgvm, CG_INIT, clc.serverMessageSequence, clc.lastExecutedServerCommand, clc.clientNum );
|
||||
|
||||
// reset any CVAR_CHEAT cvars registered by cgame
|
||||
if ( !cl_connectedToCheatServer )
|
||||
Cvar_SetCheatState();
|
||||
|
||||
// we will send a usercmd this frame, which
|
||||
// will cause the server to send us the first snapshot
|
||||
cls.state = CA_PRIMED;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue