From 6816e32d23911463b4901ae5bbffde337c04027c Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Fri, 4 Feb 2022 00:04:45 +0100 Subject: [PATCH] - call float 'interpolated' functions for setting tsprite's pos. --- source/games/blood/src/animatesprite.cpp | 2 +- source/games/duke/src/animatesprites_d.cpp | 2 +- source/games/duke/src/animatesprites_r.cpp | 2 +- source/games/exhumed/src/view.cpp | 2 +- source/games/sw/src/draw.cpp | 4 ++-- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/source/games/blood/src/animatesprite.cpp b/source/games/blood/src/animatesprite.cpp index 06bbbea22..ab91b31ae 100644 --- a/source/games/blood/src/animatesprite.cpp +++ b/source/games/blood/src/animatesprite.cpp @@ -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; diff --git a/source/games/duke/src/animatesprites_d.cpp b/source/games/duke/src/animatesprites_d.cpp index 54857f3e1..10e194892 100644 --- a/source/games/duke/src/animatesprites_d.cpp +++ b/source/games/duke/src/animatesprites_d.cpp @@ -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(); diff --git a/source/games/duke/src/animatesprites_r.cpp b/source/games/duke/src/animatesprites_r.cpp index 4d142a799..3a8f0d964 100644 --- a/source/games/duke/src/animatesprites_r.cpp +++ b/source/games/duke/src/animatesprites_r.cpp @@ -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(); diff --git a/source/games/exhumed/src/view.cpp b/source/games/exhumed/src/view.cpp index d3f19d50c..497c0f856 100644 --- a/source/games/exhumed/src/view.cpp +++ b/source/games/exhumed/src/view.cpp @@ -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); } } diff --git a/source/games/sw/src/draw.cpp b/source/games/sw/src/draw.cpp index e437572b9..888c4a92b 100644 --- a/source/games/sw/src/draw.cpp +++ b/source/games/sw/src/draw.cpp @@ -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); } } }