]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - sys_sdl.c
patch from div0 to fix the fixangle logic (my fix apparently didn't work properly...
[xonotic/darkplaces.git] / sys_sdl.c
index 702cfaf881a85c7c801c72b22e476723f89af3af..c781cfed3cff43f632c862a2e312362ca5887a31 100644 (file)
--- a/sys_sdl.c
+++ b/sys_sdl.c
@@ -155,11 +155,11 @@ char *Sys_ConsoleInput(void)
        return NULL;
 }
 
-void Sys_Sleep(int milliseconds)
+void Sys_Sleep(int microseconds)
 {
-       if (milliseconds < 1)
-               milliseconds = 1;
-       SDL_Delay(milliseconds);
+       if (microseconds < 1000)
+               microseconds = 1000;
+       SDL_Delay(microseconds / 1000);
 }
 
 char *Sys_GetClipboardData (void)