From 0f2b53c7e0e2983d7d760d988dd08410e0fb97d5 Mon Sep 17 00:00:00 2001 From: fred-boy Date: Fri, 27 Sep 2019 18:17:24 +0700 Subject: [PATCH] Remove desert --- .../ru/deadsoftware/cavedroid/game/WorldGen.java | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/core/src/ru/deadsoftware/cavedroid/game/WorldGen.java b/core/src/ru/deadsoftware/cavedroid/game/WorldGen.java index faacb25..b6ab59e 100644 --- a/core/src/ru/deadsoftware/cavedroid/game/WorldGen.java +++ b/core/src/ru/deadsoftware/cavedroid/game/WorldGen.java @@ -32,12 +32,13 @@ public class WorldGen { res[i] = res[i - 1] + t; if (res[i] < min) res[i] = min; if (res[i] > max) res[i] = max; - if (i >= width / 2) { - bMap[i] = 1; - if (res[i] < 60) res[i] = 60; - } else { - bMap[i] = 0; - } + bMap[i] = 0; +// if (i >= width / 2) { +// bMap[i] = 1; +// if (res[i] < 60) res[i] = 60; +// } else { +// bMap[i] = 0; +// } } if (res[0] < res[width - 1]) res[width - 1] = res[0]; return res; -- 2.29.2