From e5d30605d557ed6524d0d11154971a6958079e1d Mon Sep 17 00:00:00 2001 From: celisej567 Date: Fri, 3 Jan 2025 02:26:39 +0300 Subject: [PATCH] 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;