Added checking of cvar aliases in PF_cvar_set().

This commit is contained in:
Anton E. Gavrilov 2000-05-19 07:50:44 +00:00
parent a221dfe674
commit 9696545932

View file

@ -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;
}