From: divverent Date: Fri, 11 Sep 2009 11:52:01 +0000 (+0000) Subject: do not send zero-length moves at >1000fps X-Git-Tag: xonotic-v0.1.0preview~1453 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=d9cb39ec64e03c6ae38a67de2e9a6053cd885daf;p=xonotic%2Fdarkplaces.git do not send zero-length moves at >1000fps git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9179 d7cf8633-e32d-0410-b094-e92efae38249 --- 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))