From 865ca92b33e579cbf99ec1cf08a76a259be62eff Mon Sep 17 00:00:00 2001 From: nukeykt Date: Tue, 3 Dec 2019 08:01:10 +0900 Subject: [PATCH] Another fish ai fix --- source/exhumed/src/fish.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/exhumed/src/fish.cpp b/source/exhumed/src/fish.cpp index 3299a232f..a59fa07ed 100644 --- a/source/exhumed/src/fish.cpp +++ b/source/exhumed/src/fish.cpp @@ -549,7 +549,7 @@ void FuncFish(int a, int nDamage, int nRun) return; } - if (nVal != 0x30000) + if ((nVal & 0x30000) == 0) { 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); }