From bdf35ac3a91e21098c36df16eef987cd29950ea9 Mon Sep 17 00:00:00 2001 From: Mitchell Richters Date: Mon, 29 Aug 2022 18:52:13 +1000 Subject: [PATCH] - Eliminate `spritetypebase::__interpolatedvec2()`. --- source/core/coreactor.h | 9 --------- source/games/duke/src/game_misc.cpp | 1 - 2 files changed, 10 deletions(-) diff --git a/source/core/coreactor.h b/source/core/coreactor.h index aaab887c9..8d448d18f 100644 --- a/source/core/coreactor.h +++ b/source/core/coreactor.h @@ -180,15 +180,6 @@ public: 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) { return interpolatedangle(oang, spr.angle, smoothratio, 16); diff --git a/source/games/duke/src/game_misc.cpp b/source/games/duke/src/game_misc.cpp index 17e4f9962..27bcb047d 100644 --- a/source/games/duke/src/game_misc.cpp +++ b/source/games/duke/src/game_misc.cpp @@ -551,7 +551,6 @@ bool GameInterface::DrawAutomapPlayer(int mx, int my, int cposx, int cposy, int for (p = connecthead; p >= 0; p = connectpoint2[p]) { auto act = ps[p].GetActor(); - auto spos = act->__interpolatedvec2(smoothratio); ox = mx - cposx; oy = my - cposy;