]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - cl_main.c
cmd: Re-re-re-implement the cbuf. This time using the new generic linked list.
[xonotic/darkplaces.git] / cl_main.c
index 31ad52bc7b5c7333a03e7ca189cb0d9750603dcc..de454ffe22369a9ab33d10d30ea1f41724665793 100644 (file)
--- a/cl_main.c
+++ b/cl_main.c
@@ -569,6 +569,11 @@ void CL_EstablishConnection(const char *address, int firstarg)
        }
 }
 
+static void CL_EstablishConnection_Local(void)
+{
+       CL_EstablishConnection("local:1", -2);
+}
+
 /*
 ==============
 CL_PrintEntities_f
@@ -2915,7 +2920,7 @@ void CL_Init (void)
        }
        else
        {
-               Con_DPrintf("Initializing client\n");
+               Con_Printf("Initializing client\n");
 
                R_Modules_Init();
                Palette_Init();
@@ -2928,7 +2933,7 @@ void CL_Init (void)
                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);
@@ -3049,6 +3054,8 @@ void CL_Init (void)
 
                CL_Video_Init();
 
+               host.hook.ConnectLocal = CL_EstablishConnection_Local;
+
                #ifdef CONFIG_MENU
                Cbuf_InsertText(&cmd_client,"menu_start\n");
                #endif