diff options
-rw-r--r-- | src/client/cl_parse.c | 10 | ||||
-rw-r--r-- | src/qcommon/cvar.c | 2 |
2 files changed, 9 insertions, 3 deletions
diff --git a/src/client/cl_parse.c b/src/client/cl_parse.c index 5218d0b3..e8bb6011 100644 --- a/src/client/cl_parse.c +++ b/src/client/cl_parse.c @@ -408,8 +408,14 @@ void CL_SystemInfoChanged( void ) { // If this cvar may not be modified by a server discard the value. if(!(cvar_flags & (CVAR_SYSTEMINFO | CVAR_SERVER_CREATED | CVAR_USER_CREATED))) { - Com_Printf(S_COLOR_YELLOW "WARNING: server is not allowed to set %s=%s\n", key, value); - continue; +#ifndef STANDALONE + if(Q_stricmp(key, "g_synchronousClients") && Q_stricmp(key, "pmove_fixed") && + Q_stricmp(key, "pmove_msec")) +#endif + { + Com_Printf(S_COLOR_YELLOW "WARNING: server is not allowed to set %s=%s\n", key, value); + continue; + } } Cvar_SetSafe(key, value); diff --git a/src/qcommon/cvar.c b/src/qcommon/cvar.c index f4aaf60c..0954e1f6 100644 --- a/src/qcommon/cvar.c +++ b/src/qcommon/cvar.c @@ -630,7 +630,7 @@ void Cvar_SetSafe( const char *var_name, const char *value ) { int flags = Cvar_Flags( var_name ); - if( flags != CVAR_NONEXISTENT && flags & CVAR_PROTECTED ) + if((flags != CVAR_NONEXISTENT) && (flags & CVAR_PROTECTED)) { if( value ) Com_Error( ERR_DROP, "Restricted source tried to set " |