diff options
Diffstat (limited to 'src')
-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) |