mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-28 20:40:47 +00:00
- buildutils: Replace sintable[]
use within SW's eel.cpp with bsin()
/bcos()
.
This commit is contained in:
parent
e60747a913
commit
ffd768ab71
1 changed files with 3 additions and 3 deletions
|
@ -545,7 +545,7 @@ int DoEelMatchPlayerZ(short SpriteNum)
|
|||
u->sz = max(u->sz, hiz + u->ceiling_dist);
|
||||
|
||||
u->Counter = (u->Counter + (ACTORMOVETICS << 3) + (ACTORMOVETICS << 1)) & 2047;
|
||||
sp->z = u->sz + ((EEL_BOB_AMT * (int)sintable[u->Counter]) >> 14);
|
||||
sp->z = u->sz + mulscale14(EEL_BOB_AMT, bsin(u->Counter));
|
||||
|
||||
bound = u->hiz + u->ceiling_dist + EEL_BOB_AMT;
|
||||
if (sp->z < bound)
|
||||
|
@ -578,8 +578,8 @@ DoEelDeath(short SpriteNum)
|
|||
DoActorSlide(SpriteNum);
|
||||
|
||||
// slide while falling
|
||||
nx = sp->xvel * (int) sintable[NORM_ANGLE(sp->ang + 512)] >> 14;
|
||||
ny = sp->xvel * (int) sintable[sp->ang] >> 14;
|
||||
nx = mulscale14(sp->xvel, bcos(sp->ang));
|
||||
ny = mulscale14(sp->xvel, bsin(sp->ang));
|
||||
|
||||
u->ret = move_sprite(SpriteNum, nx, ny, 0L, u->ceiling_dist, u->floor_dist, CLIPMASK_MISSILE, ACTORMOVETICS);
|
||||
DoFindGroundPoint(SpriteNum);
|
||||
|
|
Loading…
Reference in a new issue