0
0
Fork 0
mirror of https://github.com/ZDoom/Raze.git synced 2025-02-27 22:00:52 +00:00

- Eliminate spritetypebase::__interpolatedvec2().

This commit is contained in:
Mitchell Richters 2022-08-29 18:52:13 +10:00 committed by Christoph Oelckers
parent 19d21555a6
commit bdf35ac3a9
2 changed files with 0 additions and 10 deletions
source
core
games/duke/src

View file

@ -180,15 +180,6 @@ public:
return interpolatedz(smoothratio, scale) * zworldtoint; return interpolatedz(smoothratio, scale) * zworldtoint;
} }
vec2_t __interpolatedvec2(double const smoothratio, int const scale = 16)
{
return
{
(int)(interpolatedx(smoothratio, scale) * worldtoint),
(int)(interpolatedy(smoothratio, scale) * worldtoint)
};
}
DAngle interpolatedang(double const smoothratio) DAngle interpolatedang(double const smoothratio)
{ {
return interpolatedangle(oang, spr.angle, smoothratio, 16); return interpolatedangle(oang, spr.angle, smoothratio, 16);

View file

@ -551,7 +551,6 @@ bool GameInterface::DrawAutomapPlayer(int mx, int my, int cposx, int cposy, int
for (p = connecthead; p >= 0; p = connectpoint2[p]) for (p = connecthead; p >= 0; p = connectpoint2[p])
{ {
auto act = ps[p].GetActor(); auto act = ps[p].GetActor();
auto spos = act->__interpolatedvec2(smoothratio);
ox = mx - cposx; ox = mx - cposx;
oy = my - cposy; oy = my - cposy;