git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12713
d7cf8633-e32d-0410-b094-
e92efae38249
CL_MeshEntities_Init();
CL_Video_Init();
- Host_StartVideo();
#ifdef CONFIG_MENU
Cbuf_InsertText(&cmd_client,"menu_start\n");
int i, j, l;
// this is for all commandline options combined (and is bounds checked)
char build[MAX_INPUTLINE];
+
+ // come back later so we don't crash
+ if(host.state == host_init)
+ return;
if (Cmd_Argc (cmd) != 1)
{
Host_AddConfigText(cmd);
+ Host_StartVideo();
+
// if quake.rc is missing, use default
if (!FS_FileExists("quake.rc"))
{
host.state = host_active;
+ // run stuffcmds now, deferred previously because it can crash if a server starts that early
+ Cbuf_AddText(cmd,"stuffcmds\n");
+ Cbuf_Execute(cmd);
+
Log_Start();
// put up the loading image so the user doesn't stare at a black screen...