SteamWar/BauSystem
Archiviert
13
0

hopefully fixed region points

Dieser Commit ist enthalten in:
Zeanon 2021-04-03 22:50:14 +02:00
Ursprung 0a821936c6
Commit a55499d031

Datei anzeigen

@ -115,16 +115,16 @@ public class Prototype {
switch (regionExtensionType) { switch (regionExtensionType) {
case EXTENSION: case EXTENSION:
return new Point( return new Point(
region.minPoint.getX() + offsetX - extensionAxisX + (sizeX + extensionAxisX * 2), region.minPoint.getX() + offsetX - extensionAxisX + (sizeX + extensionAxisX * 2) - 1,
region.minPoint.getY() + offsetY + sizeY + extensionPositiveY, region.minPoint.getY() + offsetY + sizeY + extensionPositiveY - 1,
region.minPoint.getZ() + offsetZ - extensionNegativeZ + (sizeZ + extensionNegativeZ + extensionPositiveZ) region.minPoint.getZ() + offsetZ - extensionNegativeZ + (sizeZ + extensionNegativeZ + extensionPositiveZ) - 1
); );
default: default:
case NORMAL: case NORMAL:
return new Point( return new Point(
region.minPoint.getX() + offsetX + sizeX, region.minPoint.getX() + offsetX + sizeX - 1,
region.minPoint.getY() + offsetY + sizeY, region.minPoint.getY() + offsetY + sizeY - 1,
region.minPoint.getZ() + offsetZ + sizeZ region.minPoint.getZ() + offsetZ + sizeZ - 1
); );
} }
} }