Fixed commandline arguments.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@788 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2005-01-16 02:23:31 +00:00
parent 11a9c23c2b
commit ac072a4ed6

View file

@ -3056,7 +3056,7 @@ void SV_InitLocal (void)
Info_SetValueForStarKey (svs.info, "*version", va("%s %4.2f-%i", DISTRIBUTION, VERSION, build_number()), MAX_SERVERINFO_STRING);
#endif
Info_SetValueForStarKey (svs.info, "*z_ext", va("%i", SUPPORTED_EXTENSIONS), MAX_SERVERINFO_STRING);
Info_SetValueForStarKey (svs.info, "*z_ext", va("%i", SUPPORTED_Z_EXTENSIONS), MAX_SERVERINFO_STRING);
// init fraglog stuff
svs.logsequence = 1;
@ -3429,6 +3429,8 @@ void SV_Init (quakeparms_t *parms)
Memory_Init (parms->membase, parms->memsize);
COM_ParsePlusSets();
Cbuf_Init ();
Cmd_Init ();
#ifndef SERVERONLY
@ -3475,9 +3477,10 @@ void SV_Init (quakeparms_t *parms)
Cbuf_InsertText ("exec server.cfg\nexec ftesrv.cfg\n", RESTRICT_LOCAL);
// process command line arguments
Cbuf_AddText("stuffcmds", RESTRICT_LOCAL);
Cbuf_Execute ();
Cmd_StuffCmds();
// if a map wasn't specified on the command line, spawn start.map
if (sv.state == ss_dead)
Cmd_ExecuteString ("map start", RESTRICT_LOCAL);