From bbdd014f398d7fe01cd5b789a600837b3d3504cb Mon Sep 17 00:00:00 2001 From: Carmine Date: Sat, 24 Feb 2018 21:44:56 +0100 Subject: [PATCH] CalcExtents: Fixed typo in streamingExtents for grass batches --- CodeWalker.Core/GameFiles/FileTypes/YmapFile.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CodeWalker.Core/GameFiles/FileTypes/YmapFile.cs b/CodeWalker.Core/GameFiles/FileTypes/YmapFile.cs index 1d032b0..2c7108d 100644 --- a/CodeWalker.Core/GameFiles/FileTypes/YmapFile.cs +++ b/CodeWalker.Core/GameFiles/FileTypes/YmapFile.cs @@ -1117,7 +1117,7 @@ namespace CodeWalker.GameFiles emax = Vector3.Max(emax, batch.AABBMax); smin = Vector3.Min(smin, (batch.AABBMin - batch.Batch.lodDist)); // + lodoffset - smax = Vector3.Min(smax, (batch.AABBMax + batch.Batch.lodDist)); // - lodoffset + smax = Vector3.Max(smax, (batch.AABBMax + batch.Batch.lodDist)); // - lodoffset } }