mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-12 19:20:38 +00:00
Fixed code in Set AI that would cause a switch break to be missed
This commit is contained in:
parent
223d83e7be
commit
bb821cf759
1 changed files with 5 additions and 8 deletions
|
@ -504,25 +504,22 @@ void FuncSet(int a, int nDamage, int nRun)
|
||||||
{
|
{
|
||||||
SetList[nSet].nAction = 0;
|
SetList[nSet].nAction = 0;
|
||||||
SetList[nSet].field_A = 50;
|
SetList[nSet].field_A = 50;
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (PlotCourseToSprite(nSprite, nTarget) >= 768)
|
if (PlotCourseToSprite(nSprite, nTarget) >= 768)
|
||||||
{
|
{
|
||||||
SetList[nSet].nAction = 3;
|
SetList[nSet].nAction = 3;
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
else
|
else if (nFlag & 0x80)
|
||||||
{
|
|
||||||
if (nFlag & 0x80)
|
|
||||||
{
|
{
|
||||||
runlist_DamageEnemy(nTarget, nSprite, 5);
|
runlist_DamageEnemy(nTarget, nSprite, 5);
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
case 5:
|
case 5:
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue