From ef2aa46a0597a1c2588e2299caf4adf1da3dbcc7 Mon Sep 17 00:00:00 2001 From: terminx Date: Sun, 23 Apr 2006 04:49:52 +0000 Subject: [PATCH] Using 100% CPU while effectively doing nothing is bad, mmkay? git-svn-id: https://svn.eduke32.com/eduke32@95 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/build/src/mmulti.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/polymer/build/src/mmulti.c b/polymer/build/src/mmulti.c index d66c7d7e4..9e138152b 100644 --- a/polymer/build/src/mmulti.c +++ b/polymer/build/src/mmulti.c @@ -366,7 +366,14 @@ long initmultiplayersparms(long argc, char **argv) long initmultiplayerscycle(void) { long i, k; - + extern long totalclock; + +#ifdef _WIN32 + Sleep(1); +#else + usleep(1); +#endif + getpacket(&i,0); tims = GetTickCount();