]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - cl_parse.c
fix bug with gun bobbing in demo playback (where input packets are not sent, and...
[xonotic/darkplaces.git] / cl_parse.c
index 40288c0919215a295d852bb1c57d30e8a98a0674..b5c8be165070646be70d3790c65b0f5944ce5c95 100644 (file)
@@ -1411,6 +1411,9 @@ void CL_ParseClientdata (void)
 
        // viewzoom interpolation
        cl.mviewzoom[0] = (float) max(cl.stats[STAT_VIEWZOOM], 2) * (1.0f / 255.0f);
+
+       // force a recalculation of the player prediction
+       cl.movement_replay = true;
 }
 
 /*
@@ -2208,6 +2211,9 @@ void CL_ParseServerMessage(void)
                if (!cls.demoplayback)
                        VectorCopy(cl.mviewangles[0], cl.mviewangles[1]);
 
+               // force a recalculation of the player prediction
+               cl.movement_replay = true;
+
                // slightly kill qw player entities each frame
                for (i = 1;i < cl.maxclients;i++)
                        cl.entities_active[i] = false;