fix compilation on linux

This commit is contained in:
Ian Curtis 2023-11-17 18:03:40 +00:00
parent cdf5e4b2b2
commit 44fb32f2a9

View file

@ -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<float>::max();
}
else {
float distance = std::hypot(m_modelMat.currentMatrix[12], m_modelMat.currentMatrix[13], m_modelMat.currentMatrix[14]);
LODscale = fBlendRadius * m_nodeAttribs.currentModelScale / distance;
}