mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-28 04:20:45 +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);
|
||||
|
||||
// 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));
|
||||
|
|
Loading…
Reference in a new issue