MCPcopy Create free account
hub / github.com/OpenFodder/openfodder / sleepLoop

Method sleepLoop

Source/Fodder.cpp:16908–16925  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16906}
16907
16908void cFodder::sleepLoop(int64 pMilliseconds) {
16909#ifdef EMSCRIPTEN
16910 return;
16911#endif
16912 uint64 TimeStarted = SDL_GetTicks();
16913 uint64 TimeFinish = TimeStarted + pMilliseconds;
16914
16915 do {
16916 mWindow->EventCheck();
16917
16918 if (SDL_GetTicks() >= TimeFinish)
16919 break;
16920
16921 SDL_Delay(1);
16922
16923 } while (1);
16924
16925}
16926
16927void cFodder::WonGame() {
16928

Callers

nothing calls this directly

Calls 1

EventCheckMethod · 0.80

Tested by

no test coverage detected