- call float 'interpolated' functions for setting tsprite's pos.

This commit is contained in:
Christoph Oelckers 2022-02-04 00:04:45 +01:00
parent 7745701d4b
commit 6816e32d23
5 changed files with 6 additions and 6 deletions

View file

@ -578,7 +578,7 @@ void viewProcessSprites(tspriteArray& tsprites, int32_t cX, int32_t cY, int32_t
if (cl_interpolate && owneractor->interpolated && !(pTSprite->flags & 512))
{
pTSprite->set_int_pos(owneractor->__interpolatedvec3(gInterpolate));
pTSprite->pos = owneractor->interpolatedvec3(gInterpolate);
pTSprite->ang = owneractor->interpolatedang(gInterpolate);
}
int nAnim = 0;

View file

@ -172,7 +172,7 @@ void animatesprites_d(tspriteArray& tsprites, int x, int y, int a, int smoothrat
}
else if (!actorflag(h, SFLAG_NOINTERPOLATE))
{
t->set_int_pos(h->__interpolatedvec3(smoothratio));
t->pos = h->interpolatedvec3(smoothratio);
}
auto sectp = h->sector();

View file

@ -154,7 +154,7 @@ void animatesprites_r(tspriteArray& tsprites, int x, int y, int a, int smoothrat
}
else if (!actorflag(h, SFLAG_NOINTERPOLATE))
{
t->set_int_pos(h->__interpolatedvec3(smoothratio));
t->pos = h->interpolatedvec3(smoothratio);
}
auto sectp = h->sector();

View file

@ -73,7 +73,7 @@ static void analyzesprites(tspriteArray& tsprites, int x, int y, int z, double c
if (pTSprite->ownerActor)
{
// interpolate sprite position
pTSprite->set_int_pos(pTSprite->ownerActor->__interpolatedvec3(smoothratio));
pTSprite->pos = pTSprite->ownerActor->interpolatedvec3(smoothratio);
pTSprite->ang = pTSprite->ownerActor->interpolatedang(smoothratio);
}
}

View file

@ -625,7 +625,7 @@ void analyzesprites(tspriteArray& tsprites, int viewx, int viewy, int viewz, int
{
if (tsp->statnum <= STAT_SKIP4_INTERP_END)
{
tsp->set_int_pos(tActor->__interpolatedvec3(smr4, 18));
tsp->pos = tActor->interpolatedvec3(smr4, 18);
}
}
@ -633,7 +633,7 @@ void analyzesprites(tspriteArray& tsprites, int viewx, int viewy, int viewz, int
{
if (tsp->statnum <= STAT_SKIP2_INTERP_END)
{
tsp->set_int_pos(tActor->__interpolatedvec3(smr2, 17));
tsp->pos = tActor->interpolatedvec3(smr2, 17);
}
}
}