mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Use precip interp if gl sprite is for precip
This commit is contained in:
parent
8e7c5b2712
commit
000593c135
1 changed files with 16 additions and 2 deletions
|
|
@ -3730,13 +3730,27 @@ static void HWR_RotateSpritePolyToAim(gl_vissprite_t *spr, FOutVector *wallVerts
|
|||
|
||||
// do interpolation
|
||||
if (R_UsingFrameInterpolation() && !paused)
|
||||
{
|
||||
if (spr->precip)
|
||||
{
|
||||
R_InterpolatePrecipMobjState(spr->mobj, rendertimefrac, &interp);
|
||||
}
|
||||
else
|
||||
{
|
||||
R_InterpolateMobjState(spr->mobj, rendertimefrac, &interp);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if (spr->precip)
|
||||
{
|
||||
R_InterpolatePrecipMobjState(spr->mobj, FRACUNIT, &interp);
|
||||
}
|
||||
else
|
||||
{
|
||||
R_InterpolateMobjState(spr->mobj, FRACUNIT, &interp);
|
||||
}
|
||||
}
|
||||
|
||||
float basey = FIXED_TO_FLOAT(interp.z);
|
||||
float lowy = wallVerts[0].y;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue