From: havoc Date: Fri, 15 Dec 2006 19:42:10 +0000 (+0000) Subject: modified "stuffcmds" command (which runs commandline arguments preceded by + characte... X-Git-Tag: xonotic-v0.1.0preview~3748 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=892c728dd7373b02c2d9a01bbe83c3edf286140d;p=xonotic%2Fdarkplaces.git 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 --- 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++) {