fix weapon bobbing interpolation at the start of the level

This commit is contained in:
Roman Fomin 2022-05-25 17:42:59 +07:00
parent 1d4c8b2b0d
commit bf9a63b090

View File

@ -777,6 +777,10 @@ void R_DrawPSprite (pspdef_t *psp)
x1_saved = vis->x1;
texturemid_saved = vis->texturemid;
// Do not interpolate on the first tic of the level,
// otherwise oldx1 and oldtexturemid are not reset
if (leveltime > 1)
{
if (lump == oldlump)
{
int deltax = vis->x2 - vis->x1;
@ -791,6 +795,7 @@ void R_DrawPSprite (pspdef_t *psp)
oldlump = lump;
}
}
}
R_DrawVisSprite(vis, vis->x1, vis->x2);
}