2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-18 07:25:23 +00:00

CWaveBuster: Near complete implementation

This commit is contained in:
2020-04-12 02:40:51 -07:00
committed by Luke Street
parent 7d7a8673b7
commit 2cf0bd6784
4 changed files with 281 additions and 34 deletions

View File

@@ -335,11 +335,9 @@ TUniqueId CAuxWeapon::HasTarget(const CStateManager& mgr) const {
}
void CAuxWeapon::SetNewTarget(TUniqueId targetId, CStateManager& mgr) {
if (x74_firingBeamId == CPlayerState::EBeamId::Wave) {
if (auto* wb = static_cast<CWaveBuster*>(mgr.ObjectById(x70_waveBusterId))) {
wb->SetNewTarget(targetId);
}
}
if (x74_firingBeamId == CPlayerState::EBeamId::Wave)
if (auto* wb = static_cast<CWaveBuster*>(mgr.ObjectById(x70_waveBusterId)))
wb->SetNewTarget(targetId, mgr);
}
} // namespace metaforce