mirror of
https://github.com/fabiangreffrath/woof.git
synced 2025-09-26 06:20:16 -04:00
fix weapon bobbing interpolation at the start of the level
This commit is contained in:
parent
1d4c8b2b0d
commit
bf9a63b090
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user