mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-24 10:40:46 +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,24 +504,21 @@ 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
|
||||
else if (nFlag & 0x80)
|
||||
{
|
||||
if (nFlag & 0x80)
|
||||
{
|
||||
runlist_DamageEnemy(nTarget, nSprite, 5);
|
||||
break;
|
||||
}
|
||||
runlist_DamageEnemy(nTarget, nSprite, 5);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
case 5:
|
||||
|
|
Loading…
Reference in a new issue