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

This commit is contained in:
Mitchell Richters 2020-11-15 20:48:06 +11:00 committed by Christoph Oelckers
parent f0be96c385
commit 85841f5abd
1 changed files with 2 additions and 2 deletions

View File

@ -796,8 +796,8 @@ GirlNinjaJumpActionFunc(short SpriteNum)
int nx, ny; int nx, ny;
// Move while jumping // Move while jumping
nx = sp->xvel * (int) sintable[NORM_ANGLE(sp->ang + 512)] >> 14; nx = mulscale14(sp->xvel, bcos(sp->ang));
ny = sp->xvel * (int) sintable[sp->ang] >> 14; ny = mulscale14(sp->xvel, bsin(sp->ang));
// if cannot move the sprite // if cannot move the sprite
if (!move_actor(SpriteNum, nx, ny, 0L)) if (!move_actor(SpriteNum, nx, ny, 0L))