From 33eeb3956f14039338e8ad1036f24448cb34e660 Mon Sep 17 00:00:00 2001 From: sirlemonhead Date: Sat, 30 Nov 2019 16:20:25 +0000 Subject: [PATCH] Amend previous spider and lion code slightly. --- source/exhumed/src/spider.cpp | 5 +++++ 1 file changed, 5 insertions(+) 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;