mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-29 13:00:43 +00:00
- buildutils: Replace sintable[]
use within SW's rooms.cpp with bsin()
/bcos()
.
This commit is contained in:
parent
d0a8f1fbda
commit
f1d9c3ea9b
1 changed files with 2 additions and 2 deletions
|
@ -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));
|
||||||
|
|
Loading…
Reference in a new issue