From: cloudwalk Date: Mon, 25 May 2020 15:59:13 +0000 (+0000) Subject: Change default value of sv_disablenotify to 0. Print to chat. X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=4baeeb38d9c03395f699a18d75bee8c27709efdf;p=xonotic%2Fdarkplaces.git Change default value of sv_disablenotify to 0. Print to chat. Also tweaked message to be a tad clearer of what changed. git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12576 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/cvar.c b/cvar.c index 354c498b..b4c41b7d 100644 --- a/cvar.c +++ b/cvar.c @@ -359,7 +359,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("\"%s\" changed to \"%s\"\n", var->name, var->string); + SV_BroadcastPrintf("\001^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) diff --git a/sv_main.c b/sv_main.c index 1bf50a64..19d26750 100644 --- a/sv_main.c +++ b/sv_main.c @@ -36,7 +36,7 @@ cvar_t sv_worldname = {CVAR_SERVER | CVAR_READONLY, "sv_worldname", "", "name of cvar_t sv_worldnamenoextension = {CVAR_SERVER | CVAR_READONLY, "sv_worldnamenoextension", "", "name of current worldmodel without extension"}; cvar_t sv_worldbasename = {CVAR_SERVER | CVAR_READONLY, "sv_worldbasename", "", "name of current worldmodel without maps/ prefix or extension"}; -cvar_t sv_disablenotify = {CVAR_SERVER, "sv_disablenotify", "1", "suppress broadcast prints when certain cvars are changed (CVAR_NOTIFY flag in engine code)"}; +cvar_t sv_disablenotify = {CVAR_SERVER, "sv_disablenotify", "0", "suppress broadcast prints when certain cvars are changed (CVAR_NOTIFY flag in engine code)"}; cvar_t coop = {CVAR_SERVER, "coop","0", "coop mode, 0 = no coop, 1 = coop mode, multiple players playing through the singleplayer game (coop mode also shuts off deathmatch)"}; cvar_t deathmatch = {CVAR_SERVER, "deathmatch","0", "deathmatch mode, values depend on mod but typically 0 = no deathmatch, 1 = normal deathmatch with respawning weapons, 2 = weapons stay (players can only pick up new weapons)"}; cvar_t fraglimit = {CVAR_SERVER | CVAR_NOTIFY, "fraglimit","0", "ends level if this many frags is reached by any player"};