allow commands other than set to be executed from ~/.quakeforgerc

This commit is contained in:
Bill Currie 2001-05-17 21:32:59 +00:00
parent 4cd29c2ff8
commit d62ac62ff5
3 changed files with 5 additions and 5 deletions

View file

@ -985,15 +985,14 @@ Host_Init (quakeparms_t *parms)
CL_Init ();
}
Cbuf_InsertText ("exec quake.rc\n");
Cmd_Exec_File (fs_usercfg->string);
// reparse the command line for + commands other than set
// (sets still done, but it doesn't matter)
if (check_quakerc ()) {
Cmd_StuffCmds_f ();
Cbuf_Execute ();
}
Cbuf_InsertText ("exec quake.rc\n");
Hunk_AllocName (0, "-HOST_HUNKLEVEL-");
host_hunklevel = Hunk_LowMark ();

View file

@ -1674,14 +1674,14 @@ Host_Init (void)
IN_Init ();
#endif
Cbuf_InsertText ("exec quake.rc\n");
Cmd_Exec_File (fs_usercfg->string);
// Reparse the command line for + commands.
// (Note, no non-base commands exist yet)
if (check_quakerc ()) {
Cmd_StuffCmds_f ();
Cbuf_Execute ();
}
Cbuf_InsertText ("exec quake.rc\n");
Cbuf_AddText
("echo Type connect <internet address> or use a server browser to connect to a game.\n");
Cbuf_AddText ("cl_warncmd 1\n");

View file

@ -1976,6 +1976,7 @@ SV_Init (void)
Con_Printf ("<==> %s initialized <==>\n", PROGRAM);
// process command line arguments
Cmd_Exec_File (fs_usercfg->string);
Cmd_StuffCmds_f ();
Cbuf_Execute ();