From e5d30605d557ed6524d0d11154971a6958079e1d Mon Sep 17 00:00:00 2001 From: celisej567 Date: Fri, 3 Jan 2025 02:26:39 +0300 Subject: [PATCH 1/3] float NaN undefined behavour fix --- mp/src/game/client/particlemgr.cpp | 2 ++ sp/src/game/client/particlemgr.cpp | 2 ++ 2 files changed, 4 insertions(+) diff --git a/mp/src/game/client/particlemgr.cpp b/mp/src/game/client/particlemgr.cpp index 0eb09a43..fae2ecf3 100644 --- a/mp/src/game/client/particlemgr.cpp +++ b/mp/src/game/client/particlemgr.cpp @@ -146,6 +146,8 @@ CParticleEffectBinding::CParticleEffectBinding() m_LastMin = m_Min; m_LastMax = m_Max; + m_flParticleCullRadius = 0.0f + SetParticleCullRadius( 0.0f ); m_nActiveParticles = 0; diff --git a/sp/src/game/client/particlemgr.cpp b/sp/src/game/client/particlemgr.cpp index d62c6e73..23768586 100644 --- a/sp/src/game/client/particlemgr.cpp +++ b/sp/src/game/client/particlemgr.cpp @@ -146,6 +146,8 @@ CParticleEffectBinding::CParticleEffectBinding() m_LastMin = m_Min; m_LastMax = m_Max; + m_flParticleCullRadius = 0.0f + SetParticleCullRadius( 0.0f ); m_nActiveParticles = 0; From 138f51e791e6bf39f810eca919730b34352bc94f Mon Sep 17 00:00:00 2001 From: celisej567 Date: Fri, 3 Jan 2025 04:01:44 +0300 Subject: [PATCH 2/3] Update particlemgr.cpp --- mp/src/game/client/particlemgr.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mp/src/game/client/particlemgr.cpp b/mp/src/game/client/particlemgr.cpp index fae2ecf3..615b7cc4 100644 --- a/mp/src/game/client/particlemgr.cpp +++ b/mp/src/game/client/particlemgr.cpp @@ -146,7 +146,7 @@ CParticleEffectBinding::CParticleEffectBinding() m_LastMin = m_Min; m_LastMax = m_Max; - m_flParticleCullRadius = 0.0f + m_flParticleCullRadius = 0.0f; SetParticleCullRadius( 0.0f ); m_nActiveParticles = 0; From 93bec9d7c0d65a63d2660c6134725d65cea1f64b Mon Sep 17 00:00:00 2001 From: celisej567 Date: Fri, 3 Jan 2025 04:28:09 +0300 Subject: [PATCH 3/3] Update particlemgr.cpp --- sp/src/game/client/particlemgr.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sp/src/game/client/particlemgr.cpp b/sp/src/game/client/particlemgr.cpp index 23768586..b37a2000 100644 --- a/sp/src/game/client/particlemgr.cpp +++ b/sp/src/game/client/particlemgr.cpp @@ -146,7 +146,7 @@ CParticleEffectBinding::CParticleEffectBinding() m_LastMin = m_Min; m_LastMax = m_Max; - m_flParticleCullRadius = 0.0f + m_flParticleCullRadius = 0.0f; SetParticleCullRadius( 0.0f ); m_nActiveParticles = 0;