mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2024-12-25 11:50:50 +00:00
Use precip interp if gl sprite is for precip
This commit is contained in:
parent
8d2d926e70
commit
76b719ae90
1 changed files with 16 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue