summaryrefslogtreecommitdiff
path: root/src/qcommon/common.c
diff options
context:
space:
mode:
authorThilo Schulz <arny@ats.s.bawue.de>2011-07-13 19:16:25 +0000
committerTim Angus <tim@ngus.net>2013-01-10 22:27:31 +0000
commitf7f76ecf69a2908810007940feff04a42121fd05 (patch)
tree8e4e4dfe77a0ff17a69e221f623e53bf6d10ea9c /src/qcommon/common.c
parentb0c78b7d9e5ec6866ac0d38ef02266d3dfaa4edb (diff)
Remove one unnecessary loop in the beginning
Diffstat (limited to 'src/qcommon/common.c')
-rw-r--r--src/qcommon/common.c9
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)