mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-25 03:00: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,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:
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue