mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-03-13 22:56:28 +00:00
Don't try cheater warning if NULL netvar
This commit is contained in:
parent
6a37c1962f
commit
b7bfa5a5c7
1 changed files with 5 additions and 3 deletions
|
|
@ -1773,11 +1773,13 @@ static void Got_NetVar(UINT8 **p, INT32 playernum)
|
|||
cvar = ReadNetVar(p, &svalue, &stealth);
|
||||
|
||||
if (cvar)
|
||||
{
|
||||
Setvalue(cvar, svalue, stealth);
|
||||
|
||||
if ((cvar->flags & CV_CHEAT) && stricmp(cvar->string, cvar->defaultvalue) != 0) // use cvar->string to compare what it is now
|
||||
{
|
||||
CV_CheaterWarning(playernum, va("%s %s", cvar->name, svalue)); // but use svalue to show what they inputted
|
||||
if ((cvar->flags & CV_CHEAT) && stricmp(cvar->string, cvar->defaultvalue) != 0) // use cvar->string to compare what it is now
|
||||
{
|
||||
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