diff --git a/Src/Graphics/New3D/New3D.cpp b/Src/Graphics/New3D/New3D.cpp index 88e3bc3..020ae47 100644 --- a/Src/Graphics/New3D/New3D.cpp +++ b/Src/Graphics/New3D/New3D.cpp @@ -718,10 +718,10 @@ void CNew3D::DescendCullingNode(UINT32 addr) } float LODscale; - if (m_nodeAttribs.currentDisableCulling) - LODscale = FLT_MAX; - else - { + if (m_nodeAttribs.currentDisableCulling) { + LODscale = std::numeric_limits::max(); + } + else { float distance = std::hypot(m_modelMat.currentMatrix[12], m_modelMat.currentMatrix[13], m_modelMat.currentMatrix[14]); LODscale = fBlendRadius * m_nodeAttribs.currentModelScale / distance; }