]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
Rearrange cvar help to fix compatibility with some regex parsing of cvar help
authorcloudwalk <cloudwalk@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 9 Jun 2020 14:58:45 +0000 (14:58 +0000)
committercloudwalk <cloudwalk@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 9 Jun 2020 14:58:45 +0000 (14:58 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12660 d7cf8633-e32d-0410-b094-e92efae38249

cvar.c

diff --git a/cvar.c b/cvar.c
index 7e73bec455e0b4dc7a0c948c55cb7dbd41a72c98..3e2a251199d625d766cae6aac2f48401f63112c1 100644 (file)
--- a/cvar.c
+++ b/cvar.c
@@ -268,13 +268,11 @@ const char **Cvar_CompleteBuildList(cvar_state_t *cvars, const char *partial, in
 
 void Cvar_PrintHelp(cvar_t *cvar, const char *name, qboolean full)
 {
 
 void Cvar_PrintHelp(cvar_t *cvar, const char *name, qboolean full)
 {
-       Con_Printf("^3%s^7", name);
+       Con_Printf("^3%s^7 is \"%s\" [\"%s\"]", name, ((cvar->flags & CVAR_PRIVATE) ? "********"/*hunter2*/ : cvar->string), cvar->defstring);
        if (strcmp(cvar->name, name))
        if (strcmp(cvar->name, name))
-               Con_Printf(" (now ^3%s^7)", cvar->name);
-       Con_Printf(" is \"%s\" [\"%s\"] ", ((cvar->flags & CVAR_PRIVATE) ? "********"/*hunter2*/ : cvar->string), cvar->defstring);
-       
+               Con_Printf(" (also ^3%s^7)", cvar->name);
        if (full)
        if (full)
-               Con_Printf("%s", cvar->description);
+               Con_Printf(" %s", cvar->description);
        Con_Printf("\n");
 }
 
        Con_Printf("\n");
 }