From ab0006dba2384eb03b704de2894974a5f86974ae Mon Sep 17 00:00:00 2001 From: divverent Date: Sun, 27 Sep 2009 19:08:23 +0000 Subject: [PATCH] fix inverse logic in "important" local git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9249 d7cf8633-e32d-0410-b094-e92efae38249 --- cl_input.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.2