mirror of
https://github.com/ZDoom/Raze.git
synced 2024-11-15 17:01:28 +00:00
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:
parent
51083f6d51
commit
9e44478467
1 changed files with 0 additions and 5 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue