From 79b2a77719472472b9d57d7f90f32c4d8ecb28bd Mon Sep 17 00:00:00 2001 From: havoc Date: Thu, 26 Jun 2008 02:41:07 +0000 Subject: [PATCH] sync console command execution to the server timer or the client timer depending on whether the server is running (previously when playing online it would execute them on every main loop, which could mess up the timing of multiple impulses in sequence) git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8378 d7cf8633-e32d-0410-b094-e92efae38249 --- host.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/host.c b/host.c index b6f177ac..661233ca 100644 --- a/host.c +++ b/host.c @@ -682,8 +682,8 @@ void Host_Main(void) // 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 all frames - if (sv_timer > 0 || !sv.active) + // otherwise we execute them on client frames + if (sv.active ? sv_timer > 0 : cl_timer > 0) { // process console commands Cbuf_Execute(); -- 2.39.2