]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
Disable sound for cvar notify. Use \003 mask, meant for notifications in chat
authorcloudwalk <cloudwalk@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 15 Jun 2020 00:20:43 +0000 (00:20 +0000)
committercloudwalk <cloudwalk@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 15 Jun 2020 00:20:43 +0000 (00:20 +0000)
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

cvar.c

diff --git a/cvar.c b/cvar.c
index fcd5062b3f408dc4238e60d779336fd5e1552e9f..5c9e0d474584794de57eeaf3f1f62968d10d7bc6 100644 (file)
--- 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)