]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
Fix scope screwup preventing apropos from printing cvars
authorcloudwalk <cloudwalk@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 8 Jun 2020 21:36:07 +0000 (21:36 +0000)
committercloudwalk <cloudwalk@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 8 Jun 2020 21:36:07 +0000 (21:36 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12655 d7cf8633-e32d-0410-b094-e92efae38249

cmd.c

diff --git a/cmd.c b/cmd.c
index 8257f973c565d38df45b7af7b6d39ce12d4dc8c4..81f9660307731973755a28ab27a03a31c3d734dc 100644 (file)
--- a/cmd.c
+++ b/cmd.c
@@ -1461,12 +1461,11 @@ static void Cmd_Apropos_f(cmd_state_t *cmd)
                        continue;
                } else {
                        cvar_name = (char *)cvar->name;
-                       break;
-               }
 print:
-               Con_Printf ("cvar ");
-               Cvar_PrintHelp(cvar, cvar_name, true);
-               count++;
+                       Con_Printf ("cvar ");
+                       Cvar_PrintHelp(cvar, cvar_name, true);
+                       count++;
+               }
        }
        for (func = cmd->userdefined->csqc_functions; func; func = func->next)
        {