summaryrefslogtreecommitdiff
path: root/source/net_common.c
diff options
context:
space:
mode:
authorAndrey Nazarov <skuller@skuller.net>2008-03-24 20:58:48 +0000
committerAndrey Nazarov <skuller@skuller.net>2008-03-24 20:58:48 +0000
commitb187be310e6f5c8a535864558827e16140ede6b1 (patch)
tree329df938c4f216e25ff12c34d11b8ed1341d7f86 /source/net_common.c
parentc06168ccfc069a1b8361809bef6734a0b2ee8107 (diff)
Remove useless time wraparound checks.
Apply more careful input sanitizing in several places (issues revealed by zzuf(1)). Remove stereo *.wav loading stuff, Q2 has never supported it properly. Fixed a memory leak in Image_LoadPCX. Mark clients after receiving ICMP errors from them, drop after `sv_ghostime' seconds.
Diffstat (limited to 'source/net_common.c')
-rw-r--r--source/net_common.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/net_common.c b/source/net_common.c
index 2b73591..8714892 100644
--- a/source/net_common.c
+++ b/source/net_common.c
@@ -1015,6 +1015,9 @@ void NET_Sleep( int msec ) {
timeout.tv_sec = msec / 1000;
timeout.tv_usec = ( msec % 1000 ) * 1000;
FD_ZERO( &fdset );
+#ifdef __unix__
+ FD_SET( 0, &fdset ); // stdin
+#endif
FD_SET( s, &fdset );
select( s + 1, &fdset, NULL, NULL, &timeout );
}