Pārlūkot izejas kodu

Changes getAbsoluteTime() on Windows to return time since starting game, rather than time since last reboot.

Fixes #507
Steve Grenier 13 gadi atpakaļ
vecāks
revīzija
c62f1c32cc
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      gameplay/src/PlatformWindows.cpp

+ 1 - 1
gameplay/src/PlatformWindows.cpp

@@ -1109,7 +1109,7 @@ double Platform::getAbsoluteTime()
     GP_ASSERT(__timeTicksPerMillis);
     __timeAbsolute = queryTime.QuadPart / __timeTicksPerMillis;
 
-    return __timeAbsolute;
+    return __timeAbsolute - __timeStart;
 }
 
 void Platform::setAbsoluteTime(double time)