From 780934a7d98fc6f0a6d65ac8577bfc24dba3eebd Mon Sep 17 00:00:00 2001 From: havoc Date: Wed, 15 Mar 2006 06:08:15 +0000 Subject: [PATCH] don't set qc impulse more than once per packet git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6116 d7cf8633-e32d-0410-b094-e92efae38249 --- sv_user.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sv_user.c b/sv_user.c index 7e8ea45a..2b88821c 100644 --- a/sv_user.c +++ b/sv_user.c @@ -748,6 +748,8 @@ void SV_ApplyClientMove (void) host_client->edict->fields.server->button2 = (move->buttons & 2)>>1; if (move->impulse) host_client->edict->fields.server->impulse = move->impulse; + // only send the impulse to qc once + move->impulse = 0; VectorCopy(move->viewangles, host_client->edict->fields.server->v_angle); if ((val = PRVM_GETEDICTFIELDVALUE(host_client->edict, eval_button3))) val->_float = ((move->buttons >> 2) & 1); if ((val = PRVM_GETEDICTFIELDVALUE(host_client->edict, eval_button4))) val->_float = ((move->buttons >> 3) & 1); -- 2.39.2