command line arguments are more reliable because of this.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@748 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2005-01-07 02:46:11 +00:00
parent 36606e1216
commit a859377ded
1 changed files with 2 additions and 11 deletions

View File

@ -23,7 +23,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
cvar_t com_fs_cache = {"fs_cache", "0", NULL, CVAR_ARCHIVE};
cvar_t rcon_level = {"rcon_level", "50"};
cvar_t cmd_onestuffwonder = {"cmd_stuffcmdonce", "1"};
cvar_t cmd_maxbuffersize = {"cmd_maxbuffersize", "65536"};
int Cmd_ExecLevel;
@ -400,19 +399,13 @@ quake +prog jctest.qp +cmd amlev1
quake -nosound +cmd amlev1
===============
*/
void Cmd_StuffCmds_f (void)
void Cmd_StuffCmds (void)
{
int i, j;
int s;
char *text, *build, c;
static qboolean getstuffed = true;
if (!getstuffed && cmd_onestuffwonder.value)
return;
getstuffed = false;
// build the combined string to parse from
s = 0;
for (i=1 ; i<com_argc ; i++)
@ -459,7 +452,7 @@ void Cmd_StuffCmds_f (void)
}
if (build[0])
Cbuf_InsertText (build, Cmd_ExecLevel);
Cbuf_AddText (build, RESTRICT_LOCAL);
Z_Free (text);
Z_Free (build);
@ -2655,7 +2648,6 @@ void Cmd_Init (void)
//
// register our commands
//
Cmd_AddCommand ("stuffcmds",Cmd_StuffCmds_f);
Cmd_AddCommand ("cfg_save",Cmd_WriteConfig_f);
Cmd_AddCommand ("cfg_load",Cmd_Exec_f);
@ -2696,7 +2688,6 @@ void Cmd_Init (void)
rcon_level.restriction = RESTRICT_MAX; //default. Don't let anyone change this too easily.
cmd_maxbuffersize.restriction = RESTRICT_MAX; //filling this causes a loop for quite some time.
Cvar_Register(&cmd_onestuffwonder, "Console");
Cvar_Register(&cl_aliasoverlap, "Console");
//FIXME: go through quake.rc and parameters looking for sets and setas and setting them now.