From: havoc Date: Thu, 26 Jun 2008 02:41:07 +0000 (+0000) Subject: sync console command execution to the server timer or the client timer X-Git-Tag: xonotic-v0.1.0preview~2197 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=79b2a77719472472b9d57d7f90f32c4d8ecb28bd;p=xonotic%2Fdarkplaces.git 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 --- 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();