From: divverent Date: Sun, 27 Sep 2009 19:08:23 +0000 (+0000) Subject: fix inverse logic in "important" local X-Git-Tag: xonotic-v0.1.0preview~1384 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=ab0006dba2384eb03b704de2894974a5f86974ae;p=xonotic%2Fdarkplaces.git fix inverse logic in "important" local git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9249 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/cl_input.c b/cl_input.c index 311edf0b..aae1f635 100644 --- a/cl_input.c +++ b/cl_input.c @@ -1702,7 +1702,7 @@ void CL_SendMove(void) return; // always send if buttons changed or an impulse is pending // even if it violates the rate limit! - important = !cl.cmd.impulse && (!cl_netimmediatebuttons.integer || cl.cmd.buttons == cl.movecmd[1].buttons); + important = (cl.cmd.impulse || (cl_netimmediatebuttons.integer && cl.cmd.buttons != cl.movecmd[1].buttons)); // don't send too often (cl_netfps) if (!important && realtime < cl.lastpackettime + packettime) return;