Explorar el Código

Fix current time value

victorfisac hace 9 años
padre
commit
5a1cbb2842
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      src/physac.h

+ 1 - 0
src/physac.h

@@ -788,6 +788,7 @@ static double GetCurrentTime(void)
     QueryPerformanceFrequency(&clockFrequency);
     QueryPerformanceCounter(&currentTime);
     
+    time = (double)((double)currentTime/(double)clockFrequency);
 #endif
 
 #if defined(PLATFORM_ANDROID) || defined(PLATFORM_RPI)