]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
fix inverse logic in "important" local
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 27 Sep 2009 19:08:23 +0000 (19:08 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 27 Sep 2009 19:08:23 +0000 (19:08 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9249 d7cf8633-e32d-0410-b094-e92efae38249

cl_input.c

index 311edf0bc25b9e4bba33c3900451ec47e11421f7..aae1f635c9ab138e9aed00fa7841051c37bb5b9e 100644 (file)
@@ -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;