]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - cmd.c
modified "stuffcmds" command (which runs commandline arguments preceded by + characte...
[xonotic/darkplaces.git] / cmd.c
diff --git a/cmd.c b/cmd.c
index a911fb346fd6de24a57f7af1912593cffa637ce3..9797e01f43fb80478f820b69e2e1bd405931b9e1 100644 (file)
--- a/cmd.c
+++ b/cmd.c
@@ -225,6 +225,10 @@ void Cmd_StuffCmds_f (void)
                return;
        }
 
+       // no reason to run the commandline arguments twice
+       if (host_stuffcmdsrun)
+               return;
+
        host_stuffcmdsrun = true;
        for (i = 0;i < com_argc;i++)
        {