From: cloudwalk Date: Mon, 15 Jun 2020 00:20:43 +0000 (+0000) Subject: Disable sound for cvar notify. Use \003 mask, meant for notifications in chat X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=29291705e56e63a98eb6b4a10f699e3336a55d86;p=xonotic%2Fdarkplaces.git Disable sound for cvar notify. Use \003 mask, meant for notifications in chat Ironically, I took a cue from Source Engine enabling this by default, but realized later that not even Source plays a chat sound for cvar notifications, which people rightfully complained about, due to being spammy and annoying. git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12670 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/cvar.c b/cvar.c index fcd5062b..5c9e0d47 100644 --- a/cvar.c +++ b/cvar.c @@ -402,7 +402,7 @@ static void Cvar_SetQuick_Internal (cvar_t *var, const char *value) var->value = atof (var->string); var->integer = (int) var->value; if ((var->flags & CVAR_NOTIFY) && changed && sv.active && !sv_disablenotify.integer) - SV_BroadcastPrintf("\001^3Server cvar \"%s\" changed to \"%s\"\n", var->name, var->string); + SV_BroadcastPrintf("\003^3Server cvar \"%s\" changed to \"%s\"\n", var->name, var->string); #if 0 // TODO: add infostring support to the server? if ((var->flags & CVAR_SERVERINFO) && changed && sv.active)