Another fish ai fix

This commit is contained in:
nukeykt 2019-12-03 08:01:10 +09:00 committed by Christoph Oelckers
parent 0a4129ff56
commit 865ca92b33

View file

@ -549,7 +549,7 @@ void FuncFish(int a, int nDamage, int nRun)
return; return;
} }
if (nVal != 0x30000) if ((nVal & 0x30000) == 0)
{ {
if ((nVal & 0xC000) == 0x8000) if ((nVal & 0xC000) == 0x8000)
{ {
@ -575,7 +575,7 @@ void FuncFish(int a, int nDamage, int nRun)
} }
} }
} }
else if (nVal == 0x20000) else if (nVal & 0x20000)
{ {
IdleFish(nFish, -1); IdleFish(nFish, -1);
} }