setfl command was not updating the userinfo/serverinfo directly, but waiting for a later cvarset to do it.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5982 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2021-07-18 12:13:11 +00:00
parent bbd468d1f0
commit 2599af212a
1 changed files with 1 additions and 1 deletions

View File

@ -3846,8 +3846,8 @@ static void Cmd_set_f(void)
{
if (docalc)
text = If_Token(text, &end, IF_PRI_MAX);
Cvar_Set(var, text);
var->flags |= CVAR_USERCREATED | forceflags;
Cvar_Set(var, text);
if (Cmd_ExecLevel == RESTRICT_TEAMPLAY)
var->flags |= CVAR_TEAMPLAYTAINT;