aboutsummaryrefslogtreecommitdiffstats
path: root/code/qcommon/common.c
diff options
context:
space:
mode:
authorthilo <thilo@edf5b092-35ff-0310-97b2-ce42778d08ea>2006-08-18 01:50:51 +0000
committerthilo <thilo@edf5b092-35ff-0310-97b2-ce42778d08ea>2006-08-18 01:50:51 +0000
commitf053285852be89ef4238b1a6682a63233501f342 (patch)
treef2e96d101bf89ef0b3ab747f9ad555104a7a2be1 /code/qcommon/common.c
parent8f07dfd1a98d8a6128a731acd0ac3792579b216b (diff)
downloadioquake3-aero-f053285852be89ef4238b1a6682a63233501f342.tar.gz
ioquake3-aero-f053285852be89ef4238b1a6682a63233501f342.zip
Fix 100% CPU usage on idle dedicated servers.
git-svn-id: svn://svn.icculus.org/quake3/trunk@850 edf5b092-35ff-0310-97b2-ce42778d08ea
Diffstat (limited to 'code/qcommon/common.c')
-rw-r--r--code/qcommon/common.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/code/qcommon/common.c b/code/qcommon/common.c
index d1d40a9..e861b51 100644
--- a/code/qcommon/common.c
+++ b/code/qcommon/common.c
@@ -2660,9 +2660,9 @@ int Com_ModifyMsec( int msec ) {
// dedicated servers don't want to clamp for a much longer
// period, because it would mess up all the client's views
// of time.
- if ( msec > 500 ) {
+ if (com_sv_running->integer && msec > 500)
Com_Printf( "Hitch warning: %i msec frame time\n", msec );
- }
+
clampTime = 5000;
} else
if ( !com_sv_running->integer ) {