]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
don't set qc impulse more than once per packet
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 15 Mar 2006 06:08:15 +0000 (06:08 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 15 Mar 2006 06:08:15 +0000 (06:08 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6116 d7cf8633-e32d-0410-b094-e92efae38249

sv_user.c

index 7e8ea45a1019282a1702512f6b4c619f158ad84b..2b88821c6a1775f1c1b82851fa999b2bf61b1fbd 100644 (file)
--- 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);