mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-27 04:00:42 +00:00
Amend previous spider and lion code slightly.
This commit is contained in:
parent
eecb503207
commit
81dce2d2fe
2 changed files with 6 additions and 1 deletions
|
@ -191,7 +191,7 @@ void FuncLion(int a, int nDamage, int nRun)
|
||||||
|
|
||||||
if (nTarget > -1)
|
if (nTarget > -1)
|
||||||
{
|
{
|
||||||
if (nTarget > -1 && sprite[nTarget].statnum < 199) {
|
if (sprite[nTarget].statnum < 199) {
|
||||||
LionList[nLion].nTarget = nTarget;
|
LionList[nLion].nTarget = nTarget;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -400,6 +400,11 @@ case_3:
|
||||||
SpiderList[nSpider].nHealth -= nDamage;
|
SpiderList[nSpider].nHealth -= nDamage;
|
||||||
if (SpiderList[nSpider].nHealth > 0)
|
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)
|
if (nTarget > -1 && sprite[nTarget].statnum == 100)
|
||||||
{
|
{
|
||||||
SpiderList[nSpider].nTarget = nTarget;
|
SpiderList[nSpider].nTarget = nTarget;
|
||||||
|
|
Loading…
Reference in a new issue