]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
fix a bug that broke cl_maxphysicsframesperserverframe
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 31 Oct 2011 08:49:00 +0000 (08:49 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 31 Oct 2011 08:49:00 +0000 (08:49 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11500 d7cf8633-e32d-0410-b094-e92efae38249

host.c

diff --git a/host.c b/host.c
index 1484232a3e73093d9bc44a64383d0a0edab04ab6..729e998d2fa52652d8159b166629a280e8ff70c0 100644 (file)
--- a/host.c
+++ b/host.c
@@ -845,7 +845,7 @@ void Host_Main(void)
                                advancetime = sys_ticrate.value;
                                // listen servers can run multiple server frames per client frame
                                framelimit = cl_maxphysicsframesperserverframe.integer;
-                               aborttime = realtime + 0.1;
+                               aborttime = Sys_DirtyTime() + 0.1;
                        }
                        if(slowmo.value > 0 && slowmo.value < 1)
                                advancetime = min(advancetime, 0.1 / slowmo.value);
@@ -854,7 +854,7 @@ void Host_Main(void)
 
                        if(advancetime > 0)
                        {
-                               offset = Sys_DirtyTime() - realtime;if (offset < 0 || offset >= 1800) offset = 0;
+                               offset = Sys_DirtyTime() - dirtytime;if (offset < 0 || offset >= 1800) offset = 0;
                                offset += sv_timer;
                                ++svs.perf_acc_offset_samples;
                                svs.perf_acc_offset += offset;