forked from fte/fteqw
1
0
Fork 0

Spike fixed so that MVDSV does not kick us for userinfo spamming.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2656 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Molgrum 2007-09-10 22:12:13 +00:00
parent 0c6e751778
commit f099ce3e58
1 changed files with 14 additions and 10 deletions

View File

@ -674,6 +674,9 @@ cvar_t *Cvar_SetCore (cvar_t *var, const char *value, qboolean force)
#ifndef SERVERONLY
if (var->flags & CVAR_USERINFO)
{
char *old = Info_ValueForKey(cls.userinfo, var->name);
if (strcmp(old, value)) //only spam the server if it actually changed
{ //this helps with config execs
Info_SetValueForKey (cls.userinfo, var->name, value, MAX_INFO_STRING);
if (cls.state >= ca_connected)
{
@ -689,6 +692,7 @@ cvar_t *Cvar_SetCore (cvar_t *var, const char *value, qboolean force)
}
}
}
}
#endif
latch = var->string;//save off the old value (so cvar_set(var, var->string) works)