瀏覽代碼

Fix current time value

victorfisac 9 年之前
父節點
當前提交
5a1cbb2842
共有 1 個文件被更改,包括 1 次插入0 次删除
  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)