]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - sys_linux.c
changed most Sys_Error calls to Con_Printf with appropriate error returns
[xonotic/darkplaces.git] / sys_linux.c
index f3db25efac8a6dc642ec3f6ffb1b6246a351c4bd..4bdaf077dfd565b44cf18bcbb34198d2ed6f7ddc 100644 (file)
@@ -96,7 +96,12 @@ double Sys_DoubleTime (void)
                LARGE_INTEGER PerformanceCount;
 
                if (!QueryPerformanceFrequency (&PerformanceFreq))
                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__
                QueryPerformanceCounter (&PerformanceCount);
 
                #ifdef __BORLANDC__