summaryrefslogtreecommitdiff
path: root/src/common.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/common.c')
-rw-r--r--src/common.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/common.c b/src/common.c
index dd64000..a530fce 100644
--- a/src/common.c
+++ b/src/common.c
@@ -37,7 +37,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#include "cmodel.h"
#include "q_field.h"
#include "prompt.h"
-#include "io_sleep.h"
#include "fpu.h"
#include <setjmp.h>
@@ -2203,7 +2202,7 @@ void Qcommon_Frame(void)
// sleep on network sockets when running a dedicated server
// still do a select(), but don't sleep when running a client!
- IO_Sleep(remaining);
+ NET_Sleep(remaining);
// calculate time spent running last frame and sleeping
oldtime = com_eventTime;
@@ -2255,6 +2254,8 @@ void Qcommon_Frame(void)
Sys_RunConsole();
#endif
+ NET_UpdateStats();
+
remaining = SV_Frame(msec);
#if USE_CLIENT