]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
changed sv_fixedframeratesingleplayer logic a bit (now 10ms to 100ms per
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 31 Oct 2011 08:35:12 +0000 (08:35 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 31 Oct 2011 08:35:12 +0000 (08:35 +0000)
frame as in original Quake), this cvar is off by default so it should
not be a concern

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11499 d7cf8633-e32d-0410-b094-e92efae38249

host.c

diff --git a/host.c b/host.c
index ff250373870e77b459907c6c411ba30b0ea956dd..1484232a3e73093d9bc44a64383d0a0edab04ab6 100644 (file)
--- a/host.c
+++ b/host.c
@@ -837,20 +837,15 @@ void Host_Main(void)
                                advancetime = sv_timer;
                        else if (cl.islocalgame && !sv_fixedframeratesingleplayer.integer)
                        {
-                               // synchronize to the client frametime, but no less than 10ms and no more than sys_ticrate
-                               advancetime = bound(0.01, cl_timer, sys_ticrate.value);
-                               framelimit = cl_maxphysicsframesperserverframe.integer;
-                               aborttime = realtime + 0.1;
+                               // synchronize to the client frametime, but no less than 10ms and no more than 100ms
+                               advancetime = bound(0.01, cl_timer, 0.1);
                        }
                        else
                        {
                                advancetime = sys_ticrate.value;
                                // listen servers can run multiple server frames per client frame
-                               if (cls.state == ca_connected)
-                               {
-                                       framelimit = cl_maxphysicsframesperserverframe.integer;
-                                       aborttime = realtime + 0.1;
-                               }
+                               framelimit = cl_maxphysicsframesperserverframe.integer;
+                               aborttime = realtime + 0.1;
                        }
                        if(slowmo.value > 0 && slowmo.value < 1)
                                advancetime = min(advancetime, 0.1 / slowmo.value);