mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-23 15:40:39 +00:00
Fix missing angle mask for Anubis AI
This commit is contained in:
parent
803f22904b
commit
979f40f900
1 changed files with 1 additions and 1 deletions
|
@ -251,7 +251,7 @@ void FuncAnubis(int a, int nDamage, int nRun)
|
||||||
}
|
}
|
||||||
case 0x8000:
|
case 0x8000:
|
||||||
{
|
{
|
||||||
sprite[nSprite].ang += 256;
|
sprite[nSprite].ang = (sprite[nSprite].ang + 256) & kAngleMask;
|
||||||
sprite[nSprite].xvel = Sin(sprite[nSprite].ang + 512) >> 2;
|
sprite[nSprite].xvel = Sin(sprite[nSprite].ang + 512) >> 2;
|
||||||
sprite[nSprite].yvel = Sin(sprite[nSprite].ang) >> 2;
|
sprite[nSprite].yvel = Sin(sprite[nSprite].ang) >> 2;
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue