DEADSOFTWARE

Fix water in the sky
authorfred-boy <fred-boy@protonmail.com>
Sat, 21 Apr 2018 11:30:09 +0000 (18:30 +0700)
committerfred-boy <fred-boy@protonmail.com>
Sat, 21 Apr 2018 11:30:09 +0000 (18:30 +0700)
core/src/ru/deadsoftware/cavecraft/game/GameRenderer.java
core/src/ru/deadsoftware/cavecraft/game/WorldGen.java

index d104b2f2056a873d781118decc40d4b0867be7d6..5a82102a3fafaaa00fcd0dd6a30ec2522e913f1e 100644 (file)
@@ -220,12 +220,6 @@ public class GameRenderer {
         }
         spriteBatch.end();
 
-        shapeRenderer.begin(ShapeRenderer.ShapeType.Line);
-        shapeRenderer.setColor(Color.ORANGE);
-        shapeRenderer.line(0-camera.position.x, 128*16-camera.position.y,
-                gameProc.world.getWidth()*16-camera.position.x, 128*16-camera.position.y);
-        shapeRenderer.end();
-
         if (CaveGame.TOUCH) {
             spriteBatch.begin();
             drawTouchGui();
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){