diff options
author | thilo <thilo@edf5b092-35ff-0310-97b2-ce42778d08ea> | 2006-08-18 01:50:51 +0000 |
---|---|---|
committer | thilo <thilo@edf5b092-35ff-0310-97b2-ce42778d08ea> | 2006-08-18 01:50:51 +0000 |
commit | f053285852be89ef4238b1a6682a63233501f342 (patch) | |
tree | f2e96d101bf89ef0b3ab747f9ad555104a7a2be1 /code/qcommon | |
parent | 8f07dfd1a98d8a6128a731acd0ac3792579b216b (diff) | |
download | ioquake3-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')
-rw-r--r-- | code/qcommon/common.c | 4 |
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 ) { |