if (cls.state == ca_dedicated)
return;
- if (COM_CheckParm("-profilegameonly"))
+ if (Sys_CheckParm("-profilegameonly"))
Sys_AllowProfiling(false);
Curl_Clear_forthismap();
return;
// don't connect to a server if we're benchmarking a demo
- if (COM_CheckParm("-benchmark"))
+ if (Sys_CheckParm("-benchmark"))
return;
// clear menu's connect error message
}
}
+static void CL_EstablishConnection_Local(void)
+{
+ CL_EstablishConnection("local:1", -2);
+}
+
/*
==============
CL_PrintEntities_f
CL_VM_PreventInformationLeaks();
+ // get new key events
+ Key_EventQueue_Unblock();
+ SndSys_SendKeyEvents();
+ Sys_SendKeyEvents();
+
if((cl_timer += time) < 0)
return cl_timer;
if (cls.state != ca_dedicated && (cl_timer > 0 || cls.timedemo || ((vid_activewindow ? cl_maxfps : cl_maxidlefps).value < 1)))
{
- // get new key events
- Key_EventQueue_Unblock();
- SndSys_SendKeyEvents();
- Sys_SendKeyEvents();
-
R_TimeReport("---");
Collision_Cache_NewFrame();
R_TimeReport("photoncache");
}
else
{
- Con_DPrintf("Initializing client\n");
+ Con_Printf("Initializing client\n");
R_Modules_Init();
Palette_Init();
S_Init();
CDAudio_Init();
Key_Init();
-
+ V_Init();
cls.levelmempool = Mem_AllocPool("client (per-level memory)", 0, NULL);
cls.permanentmempool = Mem_AllocPool("client (long term memory)", 0, NULL);
CL_Video_Init();
+ host.hook.ConnectLocal = CL_EstablishConnection_Local;
+
#ifdef CONFIG_MENU
Cbuf_InsertText(&cmd_client,"menu_start\n");
#endif