2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-07-06 18:45:53 +00:00

Fix bitfield check in CPatterned::PathFind & update zeus (CVector3f::isZero fix)

This commit is contained in:
Luke Street 2020-09-16 00:42:44 -04:00
parent 7d418581cf
commit 69ded7eca8

View File

@ -712,7 +712,7 @@ void CPatterned::PathFind(CStateManager& mgr, EStateMsg msg, float dt) {
} }
case EStateMsg::Update: { case EStateMsg::Update: {
if (search->GetCurrentWaypoint() < search->GetWaypoints().size() - 1) { if (search->GetCurrentWaypoint() < search->GetWaypoints().size() - 1) {
if (x328_24_inPosition || x328_27_onGround) if (x328_25_verticalMovement || x328_27_onGround)
x401_24_pathOverCount += 1; x401_24_pathOverCount += 1;
zeus::CVector3f biasedPos = GetTranslation() + 0.3f * zeus::skUp; zeus::CVector3f biasedPos = GetTranslation() + 0.3f * zeus::skUp;
x2ec_reflectedDestPos = biasedPos - (x2e0_destPos - biasedPos); x2ec_reflectedDestPos = biasedPos - (x2e0_destPos - biasedPos);