From bedc415dc01216da4242b3478df136736e8beadf Mon Sep 17 00:00:00 2001 From: cloudwalk Date: Wed, 15 Jul 2020 02:44:16 +0000 Subject: [PATCH] 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 --- host.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) 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) { -- 2.39.2