Fix branching in Queen Egg AI

This commit is contained in:
sirlemonhead 2019-10-29 22:24:31 +00:00 committed by Christoph Oelckers
parent bb821cf759
commit bff4d2b65d

View file

@ -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;