Second statement should be checking on vecMaxBound.
This commit is contained in:
Kawe Mazidjatari 2023-09-23 14:55:23 +02:00
parent 48256955af
commit f2058c9ecd

View File

@ -569,7 +569,7 @@ bool CAI_Utility::IsTileWithinRange(const dtMeshTile* pTile, const VPlane& vPlan
{
// Too far from camera, do not render.
if (vCamera.DistTo(*vecMinBound) > flCameraRadius ||
vCamera.DistTo(*vecMinBound) > flCameraRadius)
vCamera.DistTo(*vecMaxBound) > flCameraRadius)
return false;
}