From: cloudwalk Date: Tue, 9 Jun 2020 15:39:59 +0000 (+0000) Subject: Give cvar aliases purple color X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=440c94bc76ee269cd44a719a00b13a593fd700eb;p=xonotic%2Fdarkplaces.git Give cvar aliases purple color git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12661 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/cvar.c b/cvar.c index 3e2a2511..fcd5062b 100644 --- a/cvar.c +++ b/cvar.c @@ -268,7 +268,12 @@ const char **Cvar_CompleteBuildList(cvar_state_t *cvars, const char *partial, in void Cvar_PrintHelp(cvar_t *cvar, const char *name, qboolean full) { - Con_Printf("^3%s^7 is \"%s\" [\"%s\"]", name, ((cvar->flags & CVAR_PRIVATE) ? "********"/*hunter2*/ : cvar->string), cvar->defstring); + // Aliases are purple, cvars are yellow + if (strcmp(cvar->name, name)) + Con_Printf("^6"); + else + Con_Printf("^3"); + Con_Printf("%s^7 is \"%s\" [\"%s\"]", name, ((cvar->flags & CVAR_PRIVATE) ? "********"/*hunter2*/ : cvar->string), cvar->defstring); if (strcmp(cvar->name, name)) Con_Printf(" (also ^3%s^7)", cvar->name); if (full)