From d9cb39ec64e03c6ae38a67de2e9a6053cd885daf Mon Sep 17 00:00:00 2001 From: divverent Date: Fri, 11 Sep 2009 11:52:01 +0000 Subject: [PATCH] do not send zero-length moves at >1000fps git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9179 d7cf8633-e32d-0410-b094-e92efae38249 --- cl_input.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cl_input.c b/cl_input.c index be77aaaf..abe87409 100644 --- a/cl_input.c +++ b/cl_input.c @@ -1658,6 +1658,10 @@ void CL_SendMove(void) // send input every frame in singleplayer if (cl.islocalgame) packettime = 0; + + // do not send if we do not have anything useful to send + if(msecdelta <= 0) + return; // always send if buttons changed or an impulse is pending // even if it violates the rate limit! if (!cl.movecmd[0].impulse && (!cl_netimmediatebuttons.integer || cl.movecmd[0].buttons == cl.movecmd[1].buttons)) -- 2.39.2