diff --git a/SourceX/storm/storm.cpp b/SourceX/storm/storm.cpp index 6603b3f55..1e5ea82b3 100644 --- a/SourceX/storm/storm.cpp +++ b/SourceX/storm/storm.cpp @@ -1,4 +1,3 @@ -#include #include #include #include @@ -545,7 +544,7 @@ BOOL SVidPlayContinue(void) double now = SDL_GetTicks() * 1000; if (now < SVidFrameEnd) { - usleep(SVidFrameEnd - now); // wait with next frame if the system is to fast + SDL_Delay((SVidFrameEnd - now)/1000); // wait with next frame if the system is to fast } return SVidLoadNextFrame();