Skip to content

Commit b38afc9

Browse files
committedNov 21, 2013
Mapgen V6: Respect water_level setting
1 parent 0c8bf7c commit b38afc9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎src/mapgen_v6.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -149,8 +149,8 @@ bool MapgenV6::block_is_underground(u64 seed, v3s16 blockpos)
149149

150150
float MapgenV6::baseTerrainLevel(float terrain_base, float terrain_higher,
151151
float steepness, float height_select) {
152-
float base = water_level + terrain_base;
153-
float higher = water_level + terrain_higher;
152+
float base = 1 + terrain_base;
153+
float higher = 1 + terrain_higher;
154154

155155
// Limit higher ground level to at least base
156156
if(higher < base)

0 commit comments

Comments
 (0)
Please sign in to comment.