Commit a41dd5f8 authored by Anthony Kleine's avatar Anthony Kleine

corrected the way bspnodes work

parent 097e8dea
Pipeline #1978130 skipped
......@@ -656,11 +656,10 @@ public class InteriorBuilder
{
// BSPNodes may be incorrect
// Consider revisiting
short oppositeIndex = (short)(surfaces.sizeIndices() - i);
int backIndex = i + 1;
if (backIndex == surfaces.sizeIndices())
backIndex = -16384;
bspNodes[i] = new BSPNode(oppositeIndex, -32768, backIndex);
//short oppositeIndex = (short)(surfaces.sizeIndices() - i);
short planeIndex = (short)i;
int backIndex = -16384 + i;
bspNodes[i] = new BSPNode(planeIndex, -32768, backIndex);
}
result.setBspNodes(bspNodes);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment