From 3dddfa63cf044dbe8c89f17aad4d1206cbb3d729 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Sat, 9 May 2020 21:12:09 -0400 Subject: [PATCH] CWaveBuster: Add AddToRenderer implementation Low hanging fruit and fairly trivial to implement. --- Runtime/Weapon/CWaveBuster.cpp | 5 +++++ Runtime/Weapon/CWaveBuster.hpp | 1 + 2 files changed, 6 insertions(+) diff --git a/Runtime/Weapon/CWaveBuster.cpp b/Runtime/Weapon/CWaveBuster.cpp index ec69c99e4..3cfd83838 100644 --- a/Runtime/Weapon/CWaveBuster.cpp +++ b/Runtime/Weapon/CWaveBuster.cpp @@ -32,6 +32,11 @@ void CWaveBuster::ResetBeam(bool deactivate) {} void CWaveBuster::SetNewTarget(TUniqueId id) {} +void CWaveBuster::AddToRenderer([[maybe_unused]] const zeus::CFrustum& frustum, CStateManager& mgr) { + const auto bounds = GetSortingBounds(mgr); + EnsureRendered(mgr, x2e8_originalXf.origin, bounds); +} + std::optional CWaveBuster::GetTouchBounds() const { if (x3d0_28_) { return std::nullopt; diff --git a/Runtime/Weapon/CWaveBuster.hpp b/Runtime/Weapon/CWaveBuster.hpp index 46594922e..6ae51b108 100644 --- a/Runtime/Weapon/CWaveBuster.hpp +++ b/Runtime/Weapon/CWaveBuster.hpp @@ -55,6 +55,7 @@ public: void ResetBeam(bool deactivate); void SetNewTarget(TUniqueId id); + void AddToRenderer(const zeus::CFrustum& frustum, CStateManager& mgr) override; std::optional GetTouchBounds() const override; };