diff --git a/source/exhumed/src/lion.cpp b/source/exhumed/src/lion.cpp index 00e86f2bf..0bfe7517b 100644 --- a/source/exhumed/src/lion.cpp +++ b/source/exhumed/src/lion.cpp @@ -191,7 +191,7 @@ void FuncLion(int a, int nDamage, int nRun) if (nTarget > -1) { - if (nTarget > -1 && sprite[nTarget].statnum < 199) { + if (sprite[nTarget].statnum < 199) { LionList[nLion].nTarget = nTarget; } diff --git a/source/exhumed/src/spider.cpp b/source/exhumed/src/spider.cpp index 12c1c9dcc..b93d2ba25 100644 --- a/source/exhumed/src/spider.cpp +++ b/source/exhumed/src/spider.cpp @@ -400,6 +400,11 @@ case_3: SpiderList[nSpider].nHealth -= nDamage; if (SpiderList[nSpider].nHealth > 0) { + /* + TODO - nTarget check was added, but should we return if it's invalid instead + or should code below (action set, b set) happen? + Other AI doesn't show consistency in this regard (see Scorpion code) + */ if (nTarget > -1 && sprite[nTarget].statnum == 100) { SpiderList[nSpider].nTarget = nTarget;