* (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:
1 parent
ddc848dced
commit
2218a4ea67
4 files changed
+12
-1
No files matched your search
@@ -325,6 +325,7 @@ void CL_ParseSnapshot( msg_t *msg ) {
|
||||
//=====================================================================
|
||||
|
||||
int cl_connectedToPureServer;
|
||||
int cl_connectedToCheatServer;
|
||||
|
||||
/*
|
||||
==================
|
||||
@@ -355,7 +356,8 @@ void CL_SystemInfoChanged( void ) {
|
||||
}
|
||||
|
||||
s = Info_ValueForKey( systemInfo, "sv_cheats" );
|
||||
if ( atoi(s) == 0 ) {
|
||||
cl_connectedToCheatServer = atoi( s );
|
||||
if ( !cl_connectedToCheatServer ) {
|
||||
Cvar_SetCheatState();
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user