Browse Source

Use SDL for tracking time

This should also allow the game to run for 49 dayes from game start instead of 49 dayes from system boot.
pull/34/head
Anders Jenbo 7 years ago
parent
commit
142f34accc
  1. 5
      SourceX/miniwin.cpp

5
SourceX/miniwin.cpp

@ -58,10 +58,7 @@ char *__cdecl _itoa(int _Value, char *_Dest, int _Radix)
DWORD WINAPI GetTickCount(VOID)
{
struct timespec now;
if (clock_gettime(CLOCK_MONOTONIC, &now))
return 0;
return now.tv_sec * 1000.0 + now.tv_nsec / 1000000.0;
return SDL_GetTicks();
}
VOID WINAPI Sleep(DWORD dwMilliseconds)

Loading…
Cancel
Save