aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorkwolekr <kwolekr@minetest.net>2013-11-21 00:43:15 -0500
committerkwolekr <kwolekr@minetest.net>2013-11-21 00:43:27 -0500
commitb38afc9311e235d2b90d61dbbcf1a18e549073a7 (patch)
treec40e0d7536f72cdb174204f963ac6473d9dd4492 /src
parent0c8bf7cf949d56571e327a0c62b2e5564fb2d796 (diff)
downloadminetest-b38afc9311e235d2b90d61dbbcf1a18e549073a7.tar.gz
minetest-b38afc9311e235d2b90d61dbbcf1a18e549073a7.tar.bz2
minetest-b38afc9311e235d2b90d61dbbcf1a18e549073a7.zip
Mapgen V6: Respect water_level setting
Diffstat (limited to 'src')
-rw-r--r--src/mapgen_v6.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mapgen_v6.cpp b/src/mapgen_v6.cpp
index 7643f3a48..64f3b9ed9 100644
--- a/src/mapgen_v6.cpp
+++ b/src/mapgen_v6.cpp
@@ -149,8 +149,8 @@ bool MapgenV6::block_is_underground(u64 seed, v3s16 blockpos)
float MapgenV6::baseTerrainLevel(float terrain_base, float terrain_higher,
float steepness, float height_select) {
- float base = water_level + terrain_base;
- float higher = water_level + terrain_higher;
+ float base = 1 + terrain_base;
+ float higher = 1 + terrain_higher;
// Limit higher ground level to at least base
if(higher < base)