mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-30 13:21:04 +00:00
- buildutils: Replace sintable[]
use within SW's skull.cpp with bsin()
/bcos()
.
This commit is contained in:
parent
3d7d31a5b7
commit
09a560cb6d
1 changed files with 4 additions and 4 deletions
|
@ -438,8 +438,8 @@ int DoSkullBob(short SpriteNum)
|
||||||
#define SKULL_BOB_AMT (Z(16))
|
#define SKULL_BOB_AMT (Z(16))
|
||||||
|
|
||||||
u->Counter = (u->Counter + (ACTORMOVETICS << 3) + (ACTORMOVETICS << 1)) & 2047;
|
u->Counter = (u->Counter + (ACTORMOVETICS << 3) + (ACTORMOVETICS << 1)) & 2047;
|
||||||
sp->z = u->sz + ((SKULL_BOB_AMT * (int)sintable[u->Counter]) >> 14) +
|
sp->z = u->sz + mulscale14(SKULL_BOB_AMT, bsin(u->Counter)) +
|
||||||
((DIV2(SKULL_BOB_AMT) * (int)sintable[u->Counter]) >> 14);
|
mulscale14(DIV2(SKULL_BOB_AMT), bsin(u->Counter));
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -849,8 +849,8 @@ int DoBettyBob(short SpriteNum)
|
||||||
#define BETTY_BOB_AMT (Z(16))
|
#define BETTY_BOB_AMT (Z(16))
|
||||||
|
|
||||||
u->Counter = (u->Counter + (ACTORMOVETICS << 3) + (ACTORMOVETICS << 1)) & 2047;
|
u->Counter = (u->Counter + (ACTORMOVETICS << 3) + (ACTORMOVETICS << 1)) & 2047;
|
||||||
sp->z = u->sz + ((BETTY_BOB_AMT * (int)sintable[u->Counter]) >> 14) +
|
sp->z = u->sz + mulscale14(BETTY_BOB_AMT, bsin(u->Counter)) +
|
||||||
((DIV2(BETTY_BOB_AMT) * (int)sintable[u->Counter]) >> 14);
|
mulscale14(DIV2(BETTY_BOB_AMT), bsin(u->Counter));
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue