From: divverent Date: Fri, 11 Sep 2009 11:25:15 +0000 (+0000) Subject: input: limit cl_netrepeatinput to 3 X-Git-Tag: xonotic-v0.1.0preview~1454 X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fdarkplaces.git;a=commitdiff_plain;h=2d254058716097d5017c06cc3d93812cd5c11334 input: limit cl_netrepeatinput to 3 git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9178 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/cl_input.c b/cl_input.c index dd5b17e9..be77aaaf 100644 --- a/cl_input.c +++ b/cl_input.c @@ -1785,7 +1785,7 @@ void CL_SendMove(void) case PROTOCOL_DARKPLACES6: case PROTOCOL_DARKPLACES7: // set the maxusercmds variable to limit how many should be sent - maxusercmds = bound(1, cl_netrepeatinput.integer + 1, CL_MAX_USERCMDS); + maxusercmds = bound(1, cl_netrepeatinput.integer + 1, min(3, CL_MAX_USERCMDS)); // when movement prediction is off, there's not much point in repeating old input as it will just be ignored if (!cl.cmd.predicted) maxusercmds = 1;