From 825b643370c9a560394b6a65c7769fc28a696d65 Mon Sep 17 00:00:00 2001 From: sirlemonhead Date: Tue, 29 Oct 2019 22:44:52 +0000 Subject: [PATCH] Fixed code in LavaDude AI that would cause a switch break to be missed --- source/exhumed/src/lavadude.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/exhumed/src/lavadude.cpp b/source/exhumed/src/lavadude.cpp index 30f78bb42..b81834a83 100644 --- a/source/exhumed/src/lavadude.cpp +++ b/source/exhumed/src/lavadude.cpp @@ -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: