mirror of
https://github.com/UberGames/lilium-voyager.git
synced 2024-12-13 05:31:29 +00:00
Add hack to allow server the setting of game cvar values that are important for playerstate prediction for legacy gamecode.
This commit is contained in:
parent
5d24905c8d
commit
3b642f9032
2 changed files with 9 additions and 3 deletions
|
@ -417,9 +417,15 @@ 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)))
|
||||
{
|
||||
#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);
|
||||
}
|
||||
|
|
|
@ -629,7 +629,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 "
|
||||
|
|
Loading…
Reference in a new issue