mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Use cvar->value instead of svalue for the check
This commit is contained in:
parent
85499045f9
commit
9d383dd38f
1 changed files with 2 additions and 2 deletions
|
|
@ -1775,9 +1775,9 @@ static void Got_NetVar(UINT8 **p, INT32 playernum)
|
|||
if (cvar)
|
||||
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
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue