void D_DoServerInfoChange (BYTE **stream, bool singlebit) { const char *value; char name[64]; int len; int type; len = ReadByte (stream); type = len >> 6; len &= 0x3f; if (len == 0) return; memcpy (name, *stream, len); *stream += len; name[len] = 0; if ( (value = SetServerVar (name, (ECVarType)type, stream, singlebit)) && netgame) { Printf ("%s changed to %s\n", name, value); } }
void D_SendServerInfoChange (const cvar_t *cvar, const char *value) { SetServerVar (cvar->name(), (char *)value); SV_ServerSettingChange (); }