From bff4d2b65d7a7016f1638fcfb9925b23afd2b05a Mon Sep 17 00:00:00 2001 From: sirlemonhead Date: Tue, 29 Oct 2019 22:24:31 +0000 Subject: [PATCH] Fix branching in Queen Egg AI --- source/exhumed/src/queen.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/source/exhumed/src/queen.cpp b/source/exhumed/src/queen.cpp index e251d710c..df1f080fb 100644 --- a/source/exhumed/src/queen.cpp +++ b/source/exhumed/src/queen.cpp @@ -553,7 +553,7 @@ void FuncQueenEgg(int a, int nDamage, int nRun) return; } - if (nMov == 0x20000) + if (nMov != 0x20000) { short nAngle; @@ -565,6 +565,9 @@ void FuncQueenEgg(int a, int nDamage, int nRun) { nAngle = sprite[nMov & 0x3FFF].ang; } + else { + return; + } sprite[nSprite].ang = nAngle; sprite[nSprite].xvel = Sin(nAngle + 512) >> 1;