From 892c728dd7373b02c2d9a01bbe83c3edf286140d Mon Sep 17 00:00:00 2001 From: havoc Date: Fri, 15 Dec 2006 19:42:10 +0000 Subject: [PATCH] modified "stuffcmds" command (which runs commandline arguments preceded by + characters) to only do so once, this allows the quake.rc to be executed multiple times without executing commandline arguments multiple times git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6652 d7cf8633-e32d-0410-b094-e92efae38249 --- cmd.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cmd.c b/cmd.c index a911fb34..9797e01f 100644 --- 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++) { -- 2.39.2