From ad814f66b0425dde6869cc42e44ba606f7ec7680 Mon Sep 17 00:00:00 2001 From: Mitchell Richters Date: Sun, 15 Nov 2020 15:20:14 +1100 Subject: [PATCH] - buildutils: Replace `sintable[]` use within Duke's spawn.cpp with `bsin()`/`bcos()`. --- source/games/duke/src/spawn.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/games/duke/src/spawn.cpp b/source/games/duke/src/spawn.cpp index 8137982fd..c3efc2cce 100644 --- a/source/games/duke/src/spawn.cpp +++ b/source/games/duke/src/spawn.cpp @@ -456,8 +456,8 @@ void initshell(DDukeActor* actj, DDukeActor* acti, bool isshell) sp->z = spj->z - PHEIGHT + (3 << 8); } - sp->x = spj->x + (sintable[(a + 512) & 2047] >> 7); - sp->y = spj->y + (sintable[a & 2047] >> 7); + sp->x = spj->x + bcos(a, -7); + sp->y = spj->y + bsin(a, -7); sp->shade = -8;