mirror of
https://github.com/DrBeef/Raze.git
synced 2024-11-16 01:11:28 +00:00
Fix branching in Lion AI code
This commit is contained in:
parent
102076dc5f
commit
85dec18ee7
1 changed files with 3 additions and 3 deletions
|
@ -267,8 +267,8 @@ void FuncLion(int a, int nDamage, int nRun)
|
|||
}
|
||||
else
|
||||
{
|
||||
sprite[nSprite].yvel = 0;
|
||||
sprite[nSprite].xvel = 0;
|
||||
sprite[nSprite].yvel = 0;
|
||||
}
|
||||
|
||||
LionList[nLion]._g = 100;
|
||||
|
@ -314,7 +314,7 @@ void FuncLion(int a, int nDamage, int nRun)
|
|||
{
|
||||
if ((nVal & 0x3FFF) == nTarget)
|
||||
{
|
||||
if (sprite[nSprite].cstat == 0x8000)
|
||||
if (sprite[nSprite].cstat != 0x8000)
|
||||
{
|
||||
int nAng = getangle(sprite[nTarget].x - sprite[nSprite].x, sprite[nTarget].y - sprite[nSprite].y);
|
||||
|
||||
|
@ -327,8 +327,8 @@ void FuncLion(int a, int nDamage, int nRun)
|
|||
{
|
||||
LionList[nLion].nAction = 9;
|
||||
sprite[nSprite].cstat &= 0x7FFF;
|
||||
sprite[nSprite].yvel = 0;
|
||||
sprite[nSprite].xvel = 0;
|
||||
sprite[nSprite].yvel = 0;
|
||||
}
|
||||
|
||||
LionList[nLion]._b = 0;
|
||||
|
|
Loading…
Reference in a new issue