aboutsummaryrefslogtreecommitdiffstats
path: root/code/sys/sys_win32.c
diff options
context:
space:
mode:
Diffstat (limited to 'code/sys/sys_win32.c')
-rw-r--r--code/sys/sys_win32.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/code/sys/sys_win32.c b/code/sys/sys_win32.c
index 18724b3..fb924e6 100644
--- a/code/sys/sys_win32.c
+++ b/code/sys/sys_win32.c
@@ -519,6 +519,9 @@ Block execution for msec or until input is recieved.
*/
void Sys_Sleep( int msec )
{
+ if( msec == 0 )
+ return;
+
if( msec < 0 )
WaitForSingleObject( GetStdHandle( STD_INPUT_HANDLE ), INFINITE );
else