From: bones_was_here Date: Thu, 28 Sep 2023 09:04:12 +0000 (+1000) Subject: cvar: reset colours after printing values, clarify virtual/alias message X-Git-Url: https://git.xonotic.org/?a=commitdiff_plain;h=ee008a1082f2579e1c758e83e845fba174f71b95;p=xonotic%2Fdarkplaces.git cvar: reset colours after printing values, clarify virtual/alias message Signed-off-by: bones_was_here --- diff --git a/cvar.c b/cvar.c index 98f11e39..e95344b5 100644 --- a/cvar.c +++ b/cvar.c @@ -271,15 +271,13 @@ void Cvar_PrintHelp(cvar_t *cvar, const char *name, qbool full) { // Aliases are purple, cvars are yellow if (strcmp(cvar->name, name)) - Con_Printf("^6"); + Con_Printf("^6%s^7 (alias of ^3%s^7)", name, cvar->name); else - Con_Printf("^3"); - Con_Printf("%s^7 is \"%s\" [\"%s\"]", name, ((cvar->flags & CF_PRIVATE) ? "********"/*hunter2*/ : cvar->string), cvar->defstring); - if (strcmp(cvar->name, name)) - Con_Printf(" (also ^3%s^7)", cvar->name); + Con_Printf("^3%s^7", name); + Con_Printf(" is \"%s^7\" [\"%s^7\"]", ((cvar->flags & CF_PRIVATE) ? "********"/*hunter2*/ : cvar->string), cvar->defstring); if (full) Con_Printf(" %s", cvar->description); - Con_Printf("\n"); + Con_Print("\n"); } // written by LadyHavoc