diff --git a/Runtime/Weapon/CBeamProjectile.cpp b/Runtime/Weapon/CBeamProjectile.cpp index 523150811..66ec6059c 100644 --- a/Runtime/Weapon/CBeamProjectile.cpp +++ b/Runtime/Weapon/CBeamProjectile.cpp @@ -25,13 +25,16 @@ CBeamProjectile::CBeamProjectile(const TToken& wDesc, std::s } std::optional CBeamProjectile::GetTouchBounds() const { - if (!GetActive()) - return {}; + if (!GetActive()) { + return std::nullopt; + } + if (x464_25_enableTouchDamage) { - zeus::CVector3f pos = GetTranslation(); + const zeus::CVector3f pos = GetTranslation(); return {{pos - 0.1f, pos + 0.1f}}; } - return {}; + + return std::nullopt; } void CBeamProjectile::CalculateRenderBounds() { x9c_renderBounds = x354_.getTransformedAABox(x324_xf); }