]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
modified "stuffcmds" command (which runs commandline arguments preceded by + characte...
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 15 Dec 2006 19:42:10 +0000 (19:42 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 15 Dec 2006 19:42:10 +0000 (19:42 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6652 d7cf8633-e32d-0410-b094-e92efae38249

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++)
        {