mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-10 22:51:57 +00:00
Small workaround for excessive spam. This is not an actual fix, but more of an optimisation.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3843 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
f870305702
commit
fbec99ff9f
1 changed files with 7 additions and 3 deletions
|
@ -659,9 +659,13 @@ cvar_t *Cvar_SetCore (cvar_t *var, const char *value, qboolean force)
|
||||||
#ifndef CLIENTONLY
|
#ifndef CLIENTONLY
|
||||||
if (var->flags & CVAR_SERVERINFO)
|
if (var->flags & CVAR_SERVERINFO)
|
||||||
{
|
{
|
||||||
Info_SetValueForKey (svs.info, var->name, value, MAX_SERVERINFO_STRING);
|
char *old = Info_ValueForKey(svs.info, var->name);
|
||||||
SV_SendServerInfoChange(var->name, value);
|
if (strcmp(old, value)) //only spam the server if it actually changed
|
||||||
// SV_BroadcastCommand ("fullserverinfo \"%s\"\n", svs.info);
|
{
|
||||||
|
Info_SetValueForKey (svs.info, var->name, value, MAX_SERVERINFO_STRING);
|
||||||
|
SV_SendServerInfoChange(var->name, value);
|
||||||
|
// SV_BroadcastCommand ("fullserverinfo \"%s\"\n", svs.info);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
#ifndef SERVERONLY
|
#ifndef SERVERONLY
|
||||||
|
|
Loading…
Reference in a new issue