diff options
author | Thilo Schulz <arny@ats.s.bawue.de> | 2011-07-15 16:51:54 +0000 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2013-01-10 22:29:59 +0000 |
commit | 46aaeb56660ef727c30841718331fef45e8377be (patch) | |
tree | 02134c1b7aa6bca7ed85983b89246b95a8d13e45 /src/qcommon/net_ip.c | |
parent | f5712eeab32ebbd4b283d1031cd37eaa12573596 (diff) |
Move rate limiting / queued packet sending logic from Com_Frame() to sv_main.c
Diffstat (limited to 'src/qcommon/net_ip.c')
-rw-r--r-- | src/qcommon/net_ip.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/qcommon/net_ip.c b/src/qcommon/net_ip.c index b6a158ce..2a93b0c4 100644 --- a/src/qcommon/net_ip.c +++ b/src/qcommon/net_ip.c @@ -1672,6 +1672,9 @@ void NET_Sleep(int msec) fd_set fdr; int highestfd = -1, retval; + if(msec < 0) + msec = 0; + FD_ZERO(&fdr); if(ip_socket != INVALID_SOCKET) |