From ccc3f1f138b50f3378dd1b3eb11aa093984d57b3 Mon Sep 17 00:00:00 2001 From: cloudwalk Date: Fri, 19 Jun 2020 12:26:16 +0000 Subject: [PATCH] In Host_Main, remove timer check. sv_timer and cl_timer are always > 0 git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12696 d7cf8633-e32d-0410-b094-e92efae38249 --- host.c | 24 ++++++++---------------- 1 file changed, 8 insertions(+), 16 deletions(-) diff --git a/host.c b/host.c index 8c825f48..2564f43b 100644 --- a/host.c +++ b/host.c @@ -759,24 +759,16 @@ void Host_Main(void) // check for commands typed to the host Host_GetConsoleCommands(); - // when a server is running we only execute console commands on server frames - // (this mainly allows frikbot .way config files to work properly by staying in sync with the server qc) - // otherwise we execute them on client frames - if (sv.active ? sv_timer > 0 : cl_timer > 0) - { - // process console commands -// R_TimeReport("preconsole"); - CL_VM_PreventInformationLeaks(); - Cbuf_Frame(&cmd_client); - Cbuf_Frame(&cmd_server); + // process console commands +// R_TimeReport("preconsole"); + CL_VM_PreventInformationLeaks(); + Cbuf_Frame(&cmd_client); + Cbuf_Frame(&cmd_server); - if(sv.active) - { - Cbuf_Frame(&cmd_serverfromclient); - } + if(sv.active) + Cbuf_Frame(&cmd_serverfromclient); -// R_TimeReport("console"); - } +// R_TimeReport("console"); //Con_Printf("%6.0f %6.0f\n", cl_timer * 1000000.0, sv_timer * 1000000.0); -- 2.39.2