mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-28 12:30:46 +00:00
- buildutils: Replace sintable[]
use within SW's ninja.cpp with bsin()
/bcos()
.
This commit is contained in:
parent
32ea54aca3
commit
73355edd2b
1 changed files with 2 additions and 2 deletions
|
@ -2067,8 +2067,8 @@ NinjaJumpActionFunc(short SpriteNum)
|
|||
int nx, ny;
|
||||
|
||||
// Move while jumping
|
||||
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));
|
||||
|
||||
// if cannot move the sprite
|
||||
if (!move_actor(SpriteNum, nx, ny, 0L))
|
||||
|
|
Loading…
Reference in a new issue