changed most Sys_Error calls to Con_Printf with appropriate error returns
[xonotic/darkplaces.git] / sys_win.c
index 9054506..71aae13 100644 (file)
--- a/sys_win.c
+++ b/sys_win.c
@@ -157,7 +157,12 @@ double Sys_DoubleTime (void)
                LARGE_INTEGER PerformanceCount;
 
                if (!QueryPerformanceFrequency (&PerformanceFreq))
-                       Sys_Error ("No hardware timer available");
+               {
+                       Con_Printf ("No hardware timer available");
+                       // fall back to timeGetTime
+                       Cvar_SetValueQuick(&sys_usetimegettime, true);
+                       return Sys_DoubleTime();
+               }
                QueryPerformanceCounter (&PerformanceCount);
 
                #ifdef __BORLANDC__