Add another invalid target sprite index check for Spider (and made the lion check more consistent to other code)

# Conflicts:
#	source/exhumed/src/lion.cpp
#	source/exhumed/src/spider.cpp
This commit is contained in:
sirlemonhead 2019-11-30 16:04:01 +00:00 committed by Christoph Oelckers
parent 51083f6d51
commit 9e44478467

View file

@ -400,11 +400,6 @@ 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;