Forráskód Böngészése

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

Fixes #507
Steve Grenier 13 éve
szülő
commit
c62f1c32cc
1 módosított fájl, 1 hozzáadás és 1 törlés
  1. 1 1
      gameplay/src/PlatformWindows.cpp

+ 1 - 1
gameplay/src/PlatformWindows.cpp

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