Use precip interp if gl sprite is for precip

This commit is contained in:
Eidolon 2022-10-31 20:23:49 -05:00
parent 8d2d926e70
commit 76b719ae90

View file

@ -3026,11 +3026,25 @@ static void HWR_RotateSpritePolyToAim(gr_vissprite_t *spr, FOutVector *wallVerts
// do interpolation
if (R_UsingFrameInterpolation() && !paused)
{
R_InterpolateMobjState(spr->mobj, rendertimefrac, &interp);
if (spr->precip)
{
R_InterpolatePrecipMobjState(spr->mobj, rendertimefrac, &interp);
}
else
{
R_InterpolateMobjState(spr->mobj, rendertimefrac, &interp);
}
}
else
{
R_InterpolateMobjState(spr->mobj, FRACUNIT, &interp);
if (spr->precip)
{
R_InterpolatePrecipMobjState(spr->mobj, FRACUNIT, &interp);
}
else
{
R_InterpolateMobjState(spr->mobj, FRACUNIT, &interp);
}
}
if (P_MobjFlip(spr->mobj) == -1)