]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
host: Remove redundant check. Only the bigger of these are going to be picked
authorcloudwalk <cloudwalk@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 15 Jul 2020 02:44:16 +0000 (02:44 +0000)
committercloudwalk <cloudwalk@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 15 Jul 2020 02:44:16 +0000 (02:44 +0000)
cl_timer shouldn't move at all under a dedicated server and sv_timer
shouldn't move if not hosting a server.

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

host.c

diff --git a/host.c b/host.c
index 2f8fcfd3bb8fbb50d460fe41a29959c27c50d7b3..717102312c3b21b74f4e8c06cf8546a015a20524 100644 (file)
--- a/host.c
+++ b/host.c
@@ -476,12 +476,7 @@ void Host_Main(void)
                //Con_Printf("%6.0f %6.0f\n", cl_timer * 1000000.0, sv_timer * 1000000.0);
 
                // if the accumulators haven't become positive yet, wait a while
-               if (cls.state == ca_dedicated)
-                       wait = sv_timer * -1000000.0;
-               else if (!sv.active || svs.threaded)
-                       wait = cl_timer * -1000000.0;
-               else
-                       wait = max(cl_timer, sv_timer) * -1000000.0;
+               wait = max(cl_timer, sv_timer) * -1000000.0;
 
                if (!host.restless && wait >= 1)
                {