]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - sys_win.c
rewrote timing code, now a much better and very different sleeping method, no longer...
[xonotic/darkplaces.git] / sys_win.c
index 69387dccadfc6515d9c3b67d426cc222014a2f06..27041f6d6a5d712080557fa0a711df6ff789e8c6 100644 (file)
--- a/sys_win.c
+++ b/sys_win.c
@@ -371,7 +371,6 @@ char                program_name[MAX_OSPATH];
 
 int WINAPI WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow)
 {
-       double frameoldtime, framenewtime;
        MEMORYSTATUS lpBuffer;
 
        /* previous instances do not exist in Win32 */
@@ -424,17 +423,7 @@ int WINAPI WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLin
                }
        }
 
-       Host_Init ();
-
-       frameoldtime = Sys_DoubleTime ();
-
-       /* main window message loop */
-       while (1)
-       {
-               framenewtime = Sys_DoubleTime ();
-               Host_Frame (framenewtime - frameoldtime);
-               frameoldtime = framenewtime;
-       }
+       Host_Main();
 
        /* return success of application */
        return true;