Fixed code in Set AI that would cause a switch break to be missed

This commit is contained in:
sirlemonhead 2019-10-29 22:17:04 +00:00 committed by Christoph Oelckers
parent 223d83e7be
commit bb821cf759

View file

@ -504,25 +504,22 @@ void FuncSet(int a, int nDamage, int nRun)
{
SetList[nSet].nAction = 0;
SetList[nSet].field_A = 50;
break;
}
else
{
if (PlotCourseToSprite(nSprite, nTarget) >= 768)
{
SetList[nSet].nAction = 3;
break;
}
else
{
if (nFlag & 0x80)
else if (nFlag & 0x80)
{
runlist_DamageEnemy(nTarget, nSprite, 5);
}
}
break;
}
}
}
}
case 5:
{