From 85dec18ee75a64ebc3a047d109be87d52a0435dd Mon Sep 17 00:00:00 2001 From: sirlemonhead Date: Fri, 1 Nov 2019 20:12:25 +0000 Subject: [PATCH] Fix branching in Lion AI code --- source/exhumed/src/lion.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/exhumed/src/lion.cpp b/source/exhumed/src/lion.cpp index 5e2ee8742..6b6267ade 100644 --- a/source/exhumed/src/lion.cpp +++ b/source/exhumed/src/lion.cpp @@ -267,8 +267,8 @@ void FuncLion(int a, int nDamage, int nRun) } else { - sprite[nSprite].yvel = 0; sprite[nSprite].xvel = 0; + sprite[nSprite].yvel = 0; } LionList[nLion]._g = 100; @@ -314,7 +314,7 @@ void FuncLion(int a, int nDamage, int nRun) { if ((nVal & 0x3FFF) == nTarget) { - if (sprite[nSprite].cstat == 0x8000) + if (sprite[nSprite].cstat != 0x8000) { int nAng = getangle(sprite[nTarget].x - sprite[nSprite].x, sprite[nTarget].y - sprite[nSprite].y); @@ -327,8 +327,8 @@ void FuncLion(int a, int nDamage, int nRun) { LionList[nLion].nAction = 9; sprite[nSprite].cstat &= 0x7FFF; - sprite[nSprite].yvel = 0; sprite[nSprite].xvel = 0; + sprite[nSprite].yvel = 0; } LionList[nLion]._b = 0;