- buildutils: Replace sintable[] use within SW's rooms.cpp with bsin()/bcos().

This commit is contained in:
Mitchell Richters 2020-11-15 21:19:03 +11:00 committed by Christoph Oelckers
parent d0a8f1fbda
commit f1d9c3ea9b

View file

@ -290,8 +290,8 @@ FAFcansee(int32_t xs, int32_t ys, int32_t zs, int16_t sects,
ang = getangle(xe - xs, ye - ys); ang = getangle(xe - xs, ye - ys);
// get x,y,z, vectors // get x,y,z, vectors
xvect = sintable[NORM_ANGLE(ang + 512)]; xvect = bcos(ang);
yvect = sintable[NORM_ANGLE(ang)]; yvect = bsin(ang);
// find the distance to the target // find the distance to the target
dist = ksqrt(SQ(xe - xs) + SQ(ye - ys)); dist = ksqrt(SQ(xe - xs) + SQ(ye - ys));