DEADSOFTWARE

Fix water in the sky
[cavedroid.git] / core / src / ru / deadsoftware / cavecraft / game / WorldGen.java
index 48c8db8d1d84542b60627b0e41db0aadf456eb15..32cb8f94a0f28db677a4045a177f3aec0cfbaf4a 100644 (file)
@@ -81,9 +81,9 @@ public class WorldGen {
                 }
             }
             for (int y = height-64; y<height-1; y++) {
-                if (foreMap[x][height-y]==0){
-                    foreMap[x][height-y] = 8;
-                    backMap[x][height-y] = 8;
+                if (foreMap[x][y]==0){
+                    foreMap[x][y] = 8;
+                    backMap[x][y] = 8;
                 }
             }
             if (x>2 && x<width-2 && rand.nextInt(100)<5){