X-Git-Url: https://git.xonotic.org/?a=blobdiff_plain;ds=inline;f=sys_win.c;h=f0f3045dfc25437039eeea09cabdb3fee83f8ad6;hb=01aea1085c66285ce22fab58ba15e72fa7bb8806;hp=69387dccadfc6515d9c3b67d426cc222014a2f06;hpb=41f1138b4a171ebb11be1418ed5579a8935b5516;p=xonotic%2Fdarkplaces.git diff --git a/sys_win.c b/sys_win.c index 69387dcc..f0f3045d 100644 --- a/sys_win.c +++ b/sys_win.c @@ -28,8 +28,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #include "conproc.h" #include "direct.h" -extern void S_BlockSound (void); - cvar_t sys_usetimegettime = {CVAR_SAVE, "sys_usetimegettime", "1", "use windows timeGetTime function (which has issues on some motherboards) for timing rather than QueryPerformanceCounter timer (which has issues on multicore/multiprocessor machines and processors which are designed to conserve power)"}; HANDLE hinput, houtput; @@ -371,7 +369,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 +421,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;