mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-25 03:00:46 +00:00
Fix branching in Queen Egg AI
This commit is contained in:
parent
bb821cf759
commit
bff4d2b65d
1 changed files with 4 additions and 1 deletions
|
@ -553,7 +553,7 @@ void FuncQueenEgg(int a, int nDamage, int nRun)
|
|||
return;
|
||||
}
|
||||
|
||||
if (nMov == 0x20000)
|
||||
if (nMov != 0x20000)
|
||||
{
|
||||
short nAngle;
|
||||
|
||||
|
@ -565,6 +565,9 @@ void FuncQueenEgg(int a, int nDamage, int nRun)
|
|||
{
|
||||
nAngle = sprite[nMov & 0x3FFF].ang;
|
||||
}
|
||||
else {
|
||||
return;
|
||||
}
|
||||
|
||||
sprite[nSprite].ang = nAngle;
|
||||
sprite[nSprite].xvel = Sin(nAngle + 512) >> 1;
|
||||
|
|
Loading…
Reference in a new issue