]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - sv_user.c
don't set qc impulse more than once per packet
[xonotic/darkplaces.git] / 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);