]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - sv_user.c
fixed impulse lossage problem (ApplyClientMove wasn't being called during ReadClientMove)
[xonotic/darkplaces.git] / sv_user.c
index 6566bf3e2bd5c16e05392d244ff437165653c908..37fe57417d88e4d27b4421e0bfb80f17aa0c1338 100644 (file)
--- a/sv_user.c
+++ b/sv_user.c
@@ -603,6 +603,7 @@ SV_ReadClientMove
 ===================
 */
 extern void SV_Physics_Entity (prvm_edict_t *ent, qboolean runmove);
+void SV_ApplyClientMove (void);
 void SV_ReadClientMove (void)
 {
        int i;
@@ -681,6 +682,8 @@ void SV_ReadClientMove (void)
                memset(move, 0, sizeof(*move));
        else
        {
+               // apply the latest accepted move to the entity fields
+               SV_ApplyClientMove();
                host_client->movesequence = move->sequence;
                if (host_client->movesequence)
                {