From 8e31aedc1bcb080a0081b720124715656b9ba921 Mon Sep 17 00:00:00 2001 From: Xadhoom <> Date: Mon, 18 Mar 2019 21:28:25 +0000 Subject: [PATCH] Make storm.cpp portable --- SourceX/storm/storm.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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();