mirror of
https://github.com/fabiangreffrath/woof.git
synced 2025-09-22 11:22:18 -04:00
fix rightmost column in weapon rendering with interpolation enabled (#1125)
This commit is contained in:
parent
b78d752803
commit
32f1dc5dd5
@ -811,10 +811,11 @@ void R_DrawPSprite (pspdef_t *psp)
|
||||
|
||||
if (lump == oldlump && pspr_interp)
|
||||
{
|
||||
int deltax = vis->x2 - vis->x1;
|
||||
int deltax = x2 - vis->x1;
|
||||
vis->x1 = oldx1 + FixedMul(vis->x1 - oldx1, fractionaltic);
|
||||
vis->x2 = vis->x1 + deltax;
|
||||
vis->x2 = vis->x2 >= viewwidth ? viewwidth - 1 : vis->x2;
|
||||
if (vis->x2 >= viewwidth)
|
||||
vis->x2 = viewwidth - 1;
|
||||
vis->texturemid = oldtexturemid + FixedMul(vis->texturemid - oldtexturemid, fractionaltic);
|
||||
}
|
||||
else
|
||||
|
Loading…
x
Reference in New Issue
Block a user