]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
In Host_Main, remove timer check. sv_timer and cl_timer are always > 0
authorcloudwalk <cloudwalk@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 19 Jun 2020 12:26:16 +0000 (12:26 +0000)
committercloudwalk <cloudwalk@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 19 Jun 2020 12:26:16 +0000 (12:26 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12696 d7cf8633-e32d-0410-b094-e92efae38249

host.c

diff --git a/host.c b/host.c
index 8c825f4848b14bbac09831a94c040a97e3f962e2..2564f43bc02d8ed6abd5a6e4a62893dc2ffc9feb 100644 (file)
--- 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);