small fixes

This commit is contained in:
Morippi
2022-05-11 09:52:20 +02:00
parent e8b964d8b7
commit 786e00e88f
2 changed files with 4 additions and 3 deletions
@@ -296,6 +296,7 @@ public class RenderDataContainer
int targetMaxVerticalData = DetailDistanceUtil.getMaxVerticalData(detailLevel);
verticalSize = targetMaxVerticalData;
dataContainer = DataPointUtil.changeMaxVertSize(tempDataContainer, fileMaxVerticalData, verticalSize);
airDataContainer = new int[AIR_SECTION_SIZE * AIR_SECTION_SIZE * DetailDistanceUtil.getMaxVerticalData(detailLevel)];
}
public LevelContainer expand()
@@ -639,11 +639,12 @@ public class DataPointUtil
for (int index = 0; index < size; index++)
{
//we scan the lods in the position from top to bottom
for (dataIndex = dataIndexesCache[index]; dataIndexesCache[index] < inputVerticalData; dataIndexesCache[index]++)
while(dataIndexesCache[index] < inputVerticalData)
{
singleData = dataToMerge[index * inputVerticalData + dataIndex];
singleData = dataToMerge[index * inputVerticalData + dataIndexesCache[index]];
if (doesItExist(singleData) && !isVoid(singleData))
{
dataIndexesCache[index]++;
if ((depth <= getDepth(singleData) && getDepth(singleData) < height)
|| (depth < getHeight(singleData) && getHeight(singleData) <= height))
{
@@ -656,7 +657,6 @@ public class DataPointUtil
}
if (!doesItExist(data))
{
singleData = dataToMerge[index * inputVerticalData];
data = createVoidDataPoint(genMode);
}