From 44fb32f2a970fd7fd83445482e89df3a0012c87d Mon Sep 17 00:00:00 2001 From: Ian Curtis Date: Fri, 17 Nov 2023 18:03:40 +0000 Subject: [PATCH] fix compilation on linux --- Src/Graphics/New3D/New3D.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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; }