From 22e1b6d22542abb9c460cf3f078e0d57f3987846 Mon Sep 17 00:00:00 2001 From: Brettflan Date: Fri, 13 Jan 2012 03:19:14 -0600 Subject: [PATCH] updated the map orientation to match the new compass north orientation --- src/com/massivecraft/factions/Board.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/com/massivecraft/factions/Board.java b/src/com/massivecraft/factions/Board.java index 195cbbc5..9649cba3 100644 --- a/src/com/massivecraft/factions/Board.java +++ b/src/com/massivecraft/factions/Board.java @@ -186,7 +186,7 @@ public class Board int halfWidth = Conf.mapWidth / 2; int halfHeight = Conf.mapHeight / 2; - FLocation topLeft = flocation.getRelative(-halfHeight, halfWidth); + FLocation topLeft = flocation.getRelative(-halfWidth, -halfHeight); int width = halfWidth * 2 + 1; int height = halfHeight * 2 + 1; @@ -199,13 +199,13 @@ public class Board int chrIdx = 0; // For each row - for (int dx = 0; dx < height; dx++) + for (int dz = 0; dz < height; dz++) { // Draw and add that row String row = ""; - for (int dz = 0; dz > -width; dz--) + for (int dx = 0; dx < width; dx++) { - if(dz == -(halfWidth) && dx == halfHeight) + if(dx == halfWidth && dz == halfHeight) { row += ChatColor.AQUA+"+"; }