mirror of
https://git.code.sf.net/p/quake/newtree
synced 2025-03-13 11:43:29 +00:00
server now starts up without segging from the cvar update
This commit is contained in:
parent
fa198d11f3
commit
119270c6fc
2 changed files with 4 additions and 4 deletions
|
@ -898,7 +898,5 @@ void SV_InitOperatorCommands (void)
|
||||||
Cmd_AddCommand ("floodprot", SV_Floodprot_f);
|
Cmd_AddCommand ("floodprot", SV_Floodprot_f);
|
||||||
Cmd_AddCommand ("floodprotmsg", SV_Floodprotmsg_f);
|
Cmd_AddCommand ("floodprotmsg", SV_Floodprotmsg_f);
|
||||||
|
|
||||||
/* cl_warncmd.value = 1;
|
cl_warncmd = Cvar_Get ("cl_warncmd", "1", CVAR_NONE, "dunno. equiv to sh -x?"); // FIXME poor description
|
||||||
CVAR_FIXME */
|
|
||||||
cl_warncmd->value = 1;
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1836,6 +1836,9 @@ void SV_Init (quakeparms_t *parms)
|
||||||
SV_Error ("Only %4.1f megs of memory reported, can't execute game", parms->memsize / (float)0x100000);
|
SV_Error ("Only %4.1f megs of memory reported, can't execute game", parms->memsize / (float)0x100000);
|
||||||
|
|
||||||
Memory_Init (parms->membase, parms->memsize);
|
Memory_Init (parms->membase, parms->memsize);
|
||||||
|
Sys_Init ();
|
||||||
|
Cvar_Init ();
|
||||||
|
|
||||||
Cbuf_Init ();
|
Cbuf_Init ();
|
||||||
Cmd_Init ();
|
Cmd_Init ();
|
||||||
|
|
||||||
|
@ -1847,7 +1850,6 @@ void SV_Init (quakeparms_t *parms)
|
||||||
SV_InitNet ();
|
SV_InitNet ();
|
||||||
|
|
||||||
SV_InitLocal ();
|
SV_InitLocal ();
|
||||||
Sys_Init ();
|
|
||||||
Pmove_Init ();
|
Pmove_Init ();
|
||||||
|
|
||||||
Hunk_AllocName (0, "-HOST_HUNKLEVEL-");
|
Hunk_AllocName (0, "-HOST_HUNKLEVEL-");
|
||||||
|
|
Loading…
Reference in a new issue