From 2d254058716097d5017c06cc3d93812cd5c11334 Mon Sep 17 00:00:00 2001 From: divverent Date: Fri, 11 Sep 2009 11:25:15 +0000 Subject: [PATCH] input: limit cl_netrepeatinput to 3 git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9178 d7cf8633-e32d-0410-b094-e92efae38249 --- cl_input.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.2