Przeglądaj źródła

Merge pull request #516 from sgrenier/next

Fix for Game::getAbsoluteTime() on Windows
Steve Grenier 13 lat temu
rodzic
commit
4a8ccdb55e
1 zmienionych plików z 1 dodań i 1 usunięć
  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)