From e33291ef45d8d62e39ed2e33c4850c112d8d2d8f Mon Sep 17 00:00:00 2001 From: Erik Broes Date: Sun, 21 Nov 2010 23:02:41 +0100 Subject: [PATCH] Fix some wrapped comments --- src/HeightMap.java | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/src/HeightMap.java b/src/HeightMap.java index 5d1b5e624..c9739c500 100755 --- a/src/HeightMap.java +++ b/src/HeightMap.java @@ -64,7 +64,6 @@ public class HeightMap { data[z * width + x] = session.getHighestTerrainBlock(x + minX, z + minZ, minY, maxY); } } - } /** @@ -118,15 +117,12 @@ public class HeightMap { int X = x + originX; int Z = z + originZ; - // We are keeping the topmost blocks so take that in account for - // the scale + // We are keeping the topmost blocks so take that in account for the scale double scale = (double) (curHeight - originY) / (double) (newHeight - originY); - // Depending on growing or shrinking we need to start at the - // bottom or top + // Depending on growing or shrinking we need to start at the bottom or top if (newHeight > curHeight) { - // Set the top block of the column to be the same type (this - // might go wrong with rounding) + // Set the top block of the column to be the same type (this might go wrong with rounding) session.setBlock(new Vector(X, newHeight, Z), session.getBlock(new Vector(X, curHeight, Z))); blocksChanged++; @@ -144,8 +140,8 @@ public class HeightMap { blocksChanged++; } - // Set the top block of the column to be the same type (this - // might go wrong with rounding) + // Set the top block of the column to be the same type + // (this could otherwise go wrong with rounding) session.setBlock(new Vector(X, newHeight, Z), session.getBlock(new Vector(X, curHeight, Z))); blocksChanged++;