]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
fix ${* q}
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 24 Jul 2008 07:01:54 +0000 (07:01 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 24 Jul 2008 07:01:54 +0000 (07:01 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8427 d7cf8633-e32d-0410-b094-e92efae38249

cmd.c

diff --git a/cmd.c b/cmd.c
index 88588672f8a9fdec0de1ee0ecc861b75102badec..c9e5cb7b81df325bb915fecb2339c044069225bd 100644 (file)
--- a/cmd.c
+++ b/cmd.c
@@ -826,7 +826,8 @@ static const char *Cmd_GetCvarValue(const char *var, size_t varlen, cmdalias_t *
                // Exception: $* and $n- don't use the quoted form by default
                varstr = Cmd_GetDirectCvarValue(varname, alias, &is_multiple);
                if(is_multiple)
-                       varfunc = "asis";
+                       if(!varfunc)
+                               varfunc = "asis";
        }
 
        if(!varstr)