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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user