]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - sys_win.c
rewrote RecursiveHullCheck, no longer gets stuck on angle changes, and is generally...
[xonotic/darkplaces.git] / sys_win.c
index 8ad72f032c3887f507cede8764538bc840e53612..82b5179be4510168be8ca50a0a9650105b4fc7c0 100644 (file)
--- a/sys_win.c
+++ b/sys_win.c
@@ -579,7 +579,7 @@ int WINAPI WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLin
                                *lpCmdLine = 0;
                                lpCmdLine++;
                        }
-                       
+
                }
        }
 
@@ -590,7 +590,7 @@ int WINAPI WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLin
        host_parms.argc = com_argc;
        host_parms.argv = com_argv;
 
-       Sys_Shared_Init();
+       Sys_Shared_EarlyInit();
 
 // take the greater of all the available memory or half the total memory,
 // but at least 8 Mb and no more than 16 Mb, unless they explicitly
@@ -631,13 +631,13 @@ int WINAPI WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLin
                        if (t < com_argc)
                                hFile = (HANDLE)atoi (com_argv[t+1]);
                }
-                       
+
                if ((t = COM_CheckParm ("-HPARENT")) > 0)
                {
                        if (t < com_argc)
                                heventParent = (HANDLE)atoi (com_argv[t+1]);
                }
-                       
+
                if ((t = COM_CheckParm ("-HCHILD")) > 0)
                {
                        if (t < com_argc)
@@ -659,9 +659,10 @@ int WINAPI WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLin
        timeBeginPeriod (1);
 #endif
 
-       Sys_Printf ("Host_Init\n");
        Host_Init ();
 
+       Sys_Shared_LateInit();
+
        oldtime = Sys_DoubleTime ();
 
     /* main window message loop */