Simplify BuildBuffer buffer selection

This commit is contained in:
James Seibel
2021-02-14 10:01:25 -06:00
parent 5301b5d567
commit bace6d111b
@@ -93,6 +93,16 @@ public class BuildBufferThread implements Callable<NearFarBuffer>
int chunkX;
int chunkZ;
if (distanceMode == FogDistance.NEAR)
{
currentBuffer = nearBuffer;
}
else // if (distanceMode == FogDistance.FAR)
{
currentBuffer = farBuffer;
}
// x axis
for (int i = start; i < end; i++)
{
@@ -118,14 +128,6 @@ public class BuildBufferThread implements Callable<NearFarBuffer>
else
currentBuffer = farBuffer;
}
else if (distanceMode == FogDistance.NEAR)
{
currentBuffer = nearBuffer;
}
else // if (distanceMode == FogDistance.FAR)
{
currentBuffer = farBuffer;
}
if (bb.minY != bb.maxY)