Explorar o código

Fix current time value

victorfisac %!s(int64=9) %!d(string=hai) anos
pai
achega
5a1cbb2842
Modificáronse 1 ficheiros con 1 adicións e 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)