Commit c48ae6b1 authored by Human Gamer's avatar Human Gamer

Fixed Negative Plane Index Export Error

parent 76438271
Pipeline #1775665 skipped
......@@ -1035,7 +1035,8 @@ public class Interior
Surface surface = this.surfaces[surfaceWinding];
int planeIndex = surface.getPlaneIndex();
short planeIndex = surface.getPlaneIndex();
planeIndex &= ~0x8000;
PlaneF plane = this.planes[planeIndex];
......
......@@ -20,7 +20,7 @@ public class Plane
public void render()
{
/*glColor(this.color);
glColor(this.color);
float d = this.plane.getD();
......@@ -36,6 +36,6 @@ public class Plane
glVertex4f((-tx.getX() - ty.getX()) + n * d, (-tx.getY() - ty.getY()) + n * d, (-tx.getZ() - ty.getZ()) + n * d, 0);
glVertex4f((-tx.getX() + ty.getX()) + n * d, (-tx.getY() + ty.getY()) + n * d, (-tx.getZ() + ty.getZ()) + n * d, 0);
}
glEnd();*/
glEnd();
}
}
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