mirror of
https://git.code.sf.net/p/quake/quakeforge-old
synced 2024-11-12 23:44:21 +00:00
Added checking of cvar aliases in PF_cvar_set().
This commit is contained in:
parent
a221dfe674
commit
9696545932
1 changed files with 3 additions and 0 deletions
|
@ -963,8 +963,11 @@ void PF_cvar_set (void)
|
|||
val = G_STRING(OFS_PARM1);
|
||||
|
||||
var = Cvar_FindVar(var_name);
|
||||
if (!var)
|
||||
var = Cvar_FindAlias(var_name);
|
||||
if (!var)
|
||||
{
|
||||
// FIXME: make it Con_DPrintf?
|
||||
Con_Printf ("PF_cvar_set: variable %s not found\n", var_name);
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue