Use cvar->value instead of svalue for the check

This commit is contained in:
Sally Coolatta 2022-09-27 15:55:08 -04:00
parent 85499045f9
commit 9d383dd38f

View file

@ -1775,9 +1775,9 @@ static void Got_NetVar(UINT8 **p, INT32 playernum)
if (cvar) if (cvar)
Setvalue(cvar, svalue, stealth); Setvalue(cvar, svalue, stealth);
if ((cvar->flags & CV_CHEAT) && stricmp(svalue, cvar->defaultvalue) != 0) if ((cvar->flags & CV_CHEAT) && stricmp(cvar->value, cvar->defaultvalue) != 0) // use cvar->value to compare what it is now
{ {
CV_CheaterWarning(playernum, va("%s %s", cvar->name, svalue)); CV_CheaterWarning(playernum, va("%s %s", cvar->name, svalue)); // but use svalue to show what they inputted
} }
} }