From d7044c16637b7f5b5fdbd180432648b7c0da02c6 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Wed, 20 Sep 2023 17:24:41 -0400 Subject: [PATCH] Depth less one --- src/engine/InterestManagement/HeightMap.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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