diff --git a/Runtime/Character/CParticleGenInfo.cpp b/Runtime/Character/CParticleGenInfo.cpp index 360e7e07a..0f8972215 100644 --- a/Runtime/Character/CParticleGenInfo.cpp +++ b/Runtime/Character/CParticleGenInfo.cpp @@ -102,13 +102,14 @@ void CParticleGenInfoGeneric::SetGlobalTranslation(const zeus::CVector3f& trans, void CParticleGenInfoGeneric::SetGlobalScale(const zeus::CVector3f& scale) { x84_system->SetGlobalScale(scale); } -void CParticleGenInfoGeneric::SetParticleEmission(bool emission, CStateManager& stateMgr) { - x84_system->SetParticleEmission(emission); +void CParticleGenInfoGeneric::SetParticleEmission(bool isActive, CStateManager& stateMgr) { + x84_system->SetParticleEmission(isActive); TCastToPtr gl(stateMgr.ObjectById(x88_lightId)); - if (gl) - gl->SetActive(emission); + if (gl) { + gl->SetActive(isActive); + } } bool CParticleGenInfoGeneric::IsSystemDeletable() const { return x84_system->IsSystemDeletable(); } diff --git a/Runtime/Character/CParticleGenInfo.hpp b/Runtime/Character/CParticleGenInfo.hpp index af2418624..ae431870f 100644 --- a/Runtime/Character/CParticleGenInfo.hpp +++ b/Runtime/Character/CParticleGenInfo.hpp @@ -44,7 +44,7 @@ public: virtual void SetGlobalOrientation(const zeus::CTransform& xf, CStateManager& stateMgr) = 0; virtual void SetGlobalTranslation(const zeus::CVector3f& trans, CStateManager& stateMgr) = 0; virtual void SetGlobalScale(const zeus::CVector3f& scale) = 0; - virtual void SetParticleEmission(bool, CStateManager& stateMgr) = 0; + virtual void SetParticleEmission(bool isActive, CStateManager& stateMgr) = 0; virtual bool IsSystemDeletable() const = 0; virtual std::optional GetBounds() const = 0; virtual bool HasActiveParticles() const = 0; @@ -97,7 +97,7 @@ public: void SetGlobalOrientation(const zeus::CTransform& xf, CStateManager& stateMgr) override; void SetGlobalTranslation(const zeus::CVector3f& trans, CStateManager& stateMgr) override; void SetGlobalScale(const zeus::CVector3f& scale) override; - void SetParticleEmission(bool, CStateManager& stateMgr) override; + void SetParticleEmission(bool isActive, CStateManager& stateMgr) override; bool IsSystemDeletable() const override; std::optional GetBounds() const override; bool HasActiveParticles() const override;