diff --git a/src/engine/InterestManagement/HeightMap.java b/src/engine/InterestManagement/HeightMap.java index f966010d..962e4678 100644 --- a/src/engine/InterestManagement/HeightMap.java +++ b/src/engine/InterestManagement/HeightMap.java @@ -331,13 +331,12 @@ public class HeightMap { byte[][] colorData = new byte[heightmapImage.getWidth()][heightmapImage.getHeight()]; - for (int y = 0; y < heightmapImage.getHeight(); y++) { + for (int y = 0; y < heightmapImage.getHeight(); y++) for (int x = 0; x < heightmapImage.getWidth(); x++) { Color color = new Color(heightmapImage.getRGB(x, y)); colorData[x][y] = (byte) color.getRed(); } - } // Insert color data into lookup table