diff options
author | Andrey Nazarov <skuller@skuller.net> | 2008-02-28 13:55:59 +0000 |
---|---|---|
committer | Andrey Nazarov <skuller@skuller.net> | 2008-02-28 13:55:59 +0000 |
commit | 856cdd0f2fafeaa31c7398c8877180c68364842d (patch) | |
tree | ab8e34b90f8a391fe57be69300e93aaf4dadb175 /source/common.c | |
parent | c9bb93abad80332d87cc91c124d0f56ad4f5d505 (diff) |
Fixed server side ping calculations.
Added `sv_calpings_method' variable.
Diffstat (limited to 'source/common.c')
-rw-r--r-- | source/common.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/common.c b/source/common.c index 63fba19..51628ae 100644 --- a/source/common.c +++ b/source/common.c @@ -1492,8 +1492,6 @@ void Qcommon_Frame( void ) { time_before = Sys_Milliseconds(); #endif - Com_ProcessEvents(); - // calculate time spent running last frame oldtime = com_eventTime; com_eventTime = Sys_Milliseconds(); @@ -1502,8 +1500,10 @@ void Qcommon_Frame( void ) { } msec = com_eventTime - oldtime; + Com_ProcessEvents(); + #ifndef DEDICATED_ONLY - // spin until msec is positive if running a client + // spin until msec is non-zero if running a client if( !dedicated->integer ) { while( msec < 1 ) { Com_ProcessEvents(); |