Actually fix interp artifacts
This commit is contained in:
parent
b2d8de2646
commit
baa30a1ba9
1 changed files with 3 additions and 3 deletions
|
|
@ -319,9 +319,9 @@ void R_InterpolateMobjState(mobj_t *mobj, fixed_t frac, interpmobjstate_t *out)
|
|||
}
|
||||
else
|
||||
{
|
||||
out->scale = R_LerpFixed(mobj->old_scale, mobj->scale, frac);
|
||||
out->radius = FixedMul(mobj->radius, FixedDiv(out->scale, mobj->scale));
|
||||
out->height = FixedMul(mobj->height, FixedDiv(out->scale, mobj->scale));
|
||||
out->scale = mobj->resetinterp ? mobj->scale : R_LerpFixed(mobj->old_scale, mobj->scale, frac);
|
||||
out->radius = mobj->resetinterp ? mobj->radius : FixedMul(mobj->radius, FixedDiv(out->scale, mobj->scale));
|
||||
out->height = mobj->resetinterp ? mobj->height : FixedMul(mobj->height, FixedDiv(out->scale, mobj->scale));
|
||||
}
|
||||
|
||||
out->subsector = R_PointInSubsector(out->x, out->y);
|
||||
|
|
|
|||
Loading…
Reference in a new issue