From 73355edd2b7a88bee09cd67b65078063a154795b Mon Sep 17 00:00:00 2001 From: Mitchell Richters Date: Sun, 15 Nov 2020 20:59:58 +1100 Subject: [PATCH] - buildutils: Replace `sintable[]` use within SW's ninja.cpp with `bsin()`/`bcos()`. --- source/sw/src/ninja.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/sw/src/ninja.cpp b/source/sw/src/ninja.cpp index dc30970b1..f86d2c8f4 100644 --- a/source/sw/src/ninja.cpp +++ b/source/sw/src/ninja.cpp @@ -2067,8 +2067,8 @@ NinjaJumpActionFunc(short SpriteNum) int nx, ny; // Move while jumping - nx = sp->xvel * (int) sintable[NORM_ANGLE(sp->ang + 512)] >> 14; - ny = sp->xvel * (int) sintable[sp->ang] >> 14; + nx = mulscale14(sp->xvel, bcos(sp->ang)); + ny = mulscale14(sp->xvel, bsin(sp->ang)); // if cannot move the sprite if (!move_actor(SpriteNum, nx, ny, 0L))