]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - cl_input.c
added r_renderview cvar (similar to scr_refresh but disables only 3D
[xonotic/darkplaces.git] / cl_input.c
index 8132d5c8eeccd8ff353f1e0156a36883e43b8d04..aae1f635c9ab138e9aed00fa7841051c37bb5b9e 100644 (file)
@@ -1698,11 +1698,11 @@ void CL_SendMove(void)
        }
 
        // do not send 0ms packets because they mess up physics
-       if(cl.cmd.msec == 0 && cl.cmd.time > cl.movecmd[1].time && (cls.protocol == PROTOCOL_QUAKEWORLD || cls.signon == SIGNONS))
+       if(cl.cmd.msec == 0 && cl.time > cl.oldtime && (cls.protocol == PROTOCOL_QUAKEWORLD || cls.signon == SIGNONS))
                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;