]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - sys_sdl.c
added experimental cl_alwayssleep cvar which calls Sys_Sleep(0) at the
[xonotic/darkplaces.git] / sys_sdl.c
index c781cfed3cff43f632c862a2e312362ca5887a31..72c5953a6429ea823ab58a88662bb1084a2fe323 100644 (file)
--- a/sys_sdl.c
+++ b/sys_sdl.c
@@ -1,3 +1,4 @@
+#include "quakedef.h"
 
 #ifdef WIN32
 #include <io.h>
@@ -10,8 +11,6 @@
 
 #include <signal.h>
 
-#include "quakedef.h"
-
 #include <SDL.h>
 
 // =======================================================================
@@ -157,8 +156,6 @@ char *Sys_ConsoleInput(void)
 
 void Sys_Sleep(int microseconds)
 {
-       if (microseconds < 1000)
-               microseconds = 1000;
        SDL_Delay(microseconds / 1000);
 }