summaryrefslogtreecommitdiff
path: root/source/net_common.c
diff options
context:
space:
mode:
authorAndrey Nazarov <skuller@skuller.net>2007-09-12 21:58:46 +0000
committerAndrey Nazarov <skuller@skuller.net>2007-09-12 21:58:46 +0000
commit0ef58160f7b4bacc57c8e7397996f0e368417272 (patch)
tree148e7ab1929383ec7e4ef259284293ecb1cd08db /source/net_common.c
parent10267d9ca8d73eac8e01f7a1ec1d0e27bfca4b5b (diff)
Improved server side handling of entity relative sounds.
Reduced memory usage of MVD delta codec (currently MVDs are broken :)). Fixed zero viewangles being sent so server is some cases (RJ scripts now work). Added screenshotpng command, renamed screenshotJPEG to screenshotjpg. Added gl_screenshot_compression cvar. Fixed too large startup messages being written to client demos. Other misc changes.
Diffstat (limited to 'source/net_common.c')
-rw-r--r--source/net_common.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/source/net_common.c b/source/net_common.c
index 69a8cc6..74909bf 100644
--- a/source/net_common.c
+++ b/source/net_common.c
@@ -1027,8 +1027,11 @@ void NET_Sleep( int msec ) {
timeout.tv_sec = msec / 1000;
timeout.tv_usec = ( msec % 1000 ) * 1000;
if( s == INVALID_SOCKET ) {
- select( 0, NULL, NULL, NULL, &timeout );
- return;
+ s = udp_sockets[NS_CLIENT];
+ if( s == INVALID_SOCKET ) {
+ select( 0, NULL, NULL, NULL, &timeout );
+ return;
+ }
}
FD_ZERO( &fdset );