From 440c94bc76ee269cd44a719a00b13a593fd700eb Mon Sep 17 00:00:00 2001 From: cloudwalk Date: Tue, 9 Jun 2020 15:39:59 +0000 Subject: [PATCH] Give cvar aliases purple color git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12661 d7cf8633-e32d-0410-b094-e92efae38249 --- cvar.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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) -- 2.39.2