diff options
author | Thilo Schulz <arny@ats.s.bawue.de> | 2011-07-13 19:16:25 +0000 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2013-01-10 22:27:31 +0000 |
commit | f7f76ecf69a2908810007940feff04a42121fd05 (patch) | |
tree | 8e4e4dfe77a0ff17a69e221f623e53bf6d10ea9c /src/qcommon/common.c | |
parent | b0c78b7d9e5ec6866ac0d38ef02266d3dfaa4edb (diff) |
Remove one unnecessary loop in the beginning
Diffstat (limited to 'src/qcommon/common.c')
-rw-r--r-- | src/qcommon/common.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/qcommon/common.c b/src/qcommon/common.c index 768166af..e9000aec 100644 --- a/src/qcommon/common.c +++ b/src/qcommon/common.c @@ -2937,8 +2937,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) |