update //flip axis to modern directions

tested and working with:
-no args when looking horizontally and vertically
-n/s/e/w
-f/b/l/r/u/d
This commit is contained in:
Jim Bilbrey 2013-01-14 00:53:38 -05:00 committed by Wizjany
parent 1a0064bf4f
commit 2b29d1a253

View File

@ -195,7 +195,7 @@ public class CuboidClipboard {
final int height = getHeight(); final int height = getHeight();
switch (dir) { switch (dir) {
case NORTH_SOUTH: case WEST_EAST:
final int wid = (int) Math.ceil(width / 2.0f); final int wid = (int) Math.ceil(width / 2.0f);
for (int xs = 0; xs < wid; ++xs) { for (int xs = 0; xs < wid; ++xs) {
for (int z = 0; z < length; ++z) { for (int z = 0; z < length; ++z) {
@ -214,7 +214,7 @@ public class CuboidClipboard {
break; break;
case WEST_EAST: case NORTH_SOUTH:
final int len = (int) Math.ceil(length / 2.0f); final int len = (int) Math.ceil(length / 2.0f);
for (int zs = 0; zs < len; ++zs) { for (int zs = 0; zs < len; ++zs) {
for (int x = 0; x < width; ++x) { for (int x = 0; x < width; ++x) {