From 265d6e03742bd5ea2f4f727981bb6d5115340ee4 Mon Sep 17 00:00:00 2001 From: Thilo Schulz Date: Wed, 13 Jul 2011 19:16:25 +0000 Subject: [PATCH] Remove one unnecessary loop in the beginning --- code/qcommon/common.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/code/qcommon/common.c b/code/qcommon/common.c index 4e52df6d..ce1e8765 100644 --- a/code/qcommon/common.c +++ b/code/qcommon/common.c @@ -3100,8 +3100,13 @@ void Com_Frame( void ) { else minMsec = 1; - timeVal = 0; - + msec = Sys_Milliseconds() - com_frameTime; + + if(msec >= minMsec) + timeVal = 0; + else + timeVal = minMsec - msec; + do { if(com_sv_running->integer)