2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-08 18:24:55 +00:00

Update hecl, fix CFlickerBat's targetable state being inverted

This commit is contained in:
2019-08-20 06:58:13 -07:00
parent 0af829c79d
commit e855cbd902
2 changed files with 4 additions and 6 deletions

View File

@@ -88,11 +88,9 @@ void CFlickerBat::Think(float dt, CStateManager& mgr) {
x42c_color.a() = alpha;
x94_simpleShadow->SetUserAlpha(alpha);
bool targetable = true;
if (mgr.GetPlayerState()->GetCurrentVisor() != CPlayerState::EPlayerVisor::XRay &&
(x574_state == EFlickerBatState::Visible || x574_state == EFlickerBatState::FadeIn))
targetable = false;
xe7_31_targetable = targetable;
xe7_31_targetable = (mgr.GetPlayerState()->GetCurrentVisor() == CPlayerState::EPlayerVisor::XRay
? true
: x574_state == EFlickerBatState::Visible || x574_state == EFlickerBatState::FadeIn);
CPatterned::Think(dt, mgr);
}

2
hecl

Submodule hecl updated: de482c8fac...875a3fc1f2