From aa3e32997bf3decdce451c8a6a915c27a489d84c Mon Sep 17 00:00:00 2001 From: Thilo Schulz Date: Wed, 22 Jun 2011 23:00:36 +0000 Subject: - Automatically reset fs_game to "" if it was supplied by the user and is equal to com_basegame - Fix problem where users could change values of CVAR_INIT variables after the call to Cvar_Get() via Com_StartupVariable() - Move sound shutdown after client shutdown so VMs don't hold invalid sound handles in memory --- src/qcommon/qcommon.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/qcommon/qcommon.h') diff --git a/src/qcommon/qcommon.h b/src/qcommon/qcommon.h index 10f548e3..8a7dbe7f 100644 --- a/src/qcommon/qcommon.h +++ b/src/qcommon/qcommon.h @@ -493,6 +493,9 @@ void Cvar_Update( vmCvar_t *vmCvar ); void Cvar_Set( const char *var_name, const char *value ); // will create the variable with no flags if it doesn't exist +cvar_t *Cvar_Set2(const char *var_name, const char *value, qboolean force); +// same as Cvar_Set, but allows more control over setting of cvar + void Cvar_SetSafe( const char *var_name, const char *value ); // sometimes we set variables from an untrusted source: fail if flags & CVAR_PROTECTED -- cgit