mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-10 23:02:03 +00:00
- buildutils: Replace sintable[]
use within Duke's prediction.cpp with bsin()
/bcos()
.
This commit is contained in:
parent
6800e192e1
commit
0781d627dc
1 changed files with 5 additions and 5 deletions
|
@ -148,8 +148,8 @@ void fakedomovethings(void)
|
|||
|
||||
if( p->aim_mode == 0 && myonground && psectlotag != 2 && (sector[psect].floorstat&2) )
|
||||
{
|
||||
x = myx+(sintable[(myang+512)&2047]>>5);
|
||||
y = myy+(sintable[myang&2047]>>5);
|
||||
x = myx + bcos(myang, -5);
|
||||
y = myy + bsin(myang, -5);
|
||||
tempsect = psect;
|
||||
updatesector(x,y,&tempsect);
|
||||
if (tempsect >= 0)
|
||||
|
@ -183,8 +183,8 @@ void fakedomovethings(void)
|
|||
if(badguy(chz.actor) && chz.actor->s.xrepeat > 24 && klabs(p->GetActor()->s.z- chz.actor->s.z) < (84<<8) )
|
||||
{
|
||||
j = getangle(chz.actor->s.x-myx, chz.actor->s.y-myy);
|
||||
myxvel -= sintable[(j+512)&2047]<<4;
|
||||
myyvel -= sintable[j&2047]<<4;
|
||||
myxvel -= bcos(j, 4);
|
||||
myyvel -= bsin(j, 4);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -368,7 +368,7 @@ void fakedomovethings(void)
|
|||
}
|
||||
else
|
||||
{
|
||||
myzvel -= (sintable[(2048-128+myjumpingcounter)&2047])/12;
|
||||
myzvel -= bsin(128 + myjumpingcounter) / 12;
|
||||
myjumpingcounter += 180;
|
||||
|
||||
myonground = 0;
|
||||
|
|
Loading…
Reference in a new issue