From: cloudwalk Date: Wed, 15 Jul 2020 02:44:16 +0000 (+0000) Subject: host: Remove redundant check. Only the bigger of these are going to be picked X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=bedc415dc01216da4242b3478df136736e8beadf;p=xonotic%2Fdarkplaces.git host: Remove redundant check. Only the bigger of these are going to be picked 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 --- diff --git a/host.c b/host.c index 2f8fcfd3..71710231 100644 --- 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) {