mirror of
https://github.com/DrBeef/Raze.git
synced 2024-11-15 17:01:51 +00:00
Fixed code in LavaDude AI that would cause a switch break to be missed
This commit is contained in:
parent
911330ed37
commit
825b643370
1 changed files with 3 additions and 3 deletions
|
@ -400,21 +400,21 @@ void FuncLava(int a, int nDamage, int nRun)
|
|||
|
||||
case 3:
|
||||
{
|
||||
if (nFlag & 0x80 && nTarget > -1)
|
||||
if ((nFlag & 0x80) && nTarget > -1)
|
||||
{
|
||||
int nHeight = GetSpriteHeight(nSprite);
|
||||
GetUpAngle(nSprite, 0x0FFFF0600, nTarget, (-(nHeight >> 1)));
|
||||
|
||||
BuildBullet(nSprite, 10, Sin(sprite[nSprite].ang + 512) << 8, Sin(sprite[nSprite].ang) << 8, -1, sprite[nSprite].ang, nTarget + 10000, 1);
|
||||
break;
|
||||
}
|
||||
else if (var_1C)
|
||||
{
|
||||
PlotCourseToSprite(nSprite, nTarget);
|
||||
LavaList[nLava].nAction = 7;
|
||||
LavaList[nLava].field_10 = 0;
|
||||
break;
|
||||
}
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
case 4:
|
||||
|
|
Loading…
Reference in a new issue