From f1d9c3ea9b5c0ab0d89be112c57dc5653474cb3e Mon Sep 17 00:00:00 2001 From: Mitchell Richters Date: Sun, 15 Nov 2020 21:19:03 +1100 Subject: [PATCH] - buildutils: Replace `sintable[]` use within SW's rooms.cpp with `bsin()`/`bcos()`. --- source/sw/src/rooms.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/sw/src/rooms.cpp b/source/sw/src/rooms.cpp index 7f20a8c24..fa5b4824f 100644 --- a/source/sw/src/rooms.cpp +++ b/source/sw/src/rooms.cpp @@ -290,8 +290,8 @@ FAFcansee(int32_t xs, int32_t ys, int32_t zs, int16_t sects, ang = getangle(xe - xs, ye - ys); // get x,y,z, vectors - xvect = sintable[NORM_ANGLE(ang + 512)]; - yvect = sintable[NORM_ANGLE(ang)]; + xvect = bcos(ang); + yvect = bsin(ang); // find the distance to the target dist = ksqrt(SQ(xe - xs) + SQ(ye - ys));