Skip to content
Permalink
Browse files

Mapgen V6: Respect water_level setting

  • Loading branch information
kwolekr committed Nov 21, 2013
1 parent 0c8bf7c commit b38afc9311e235d2b90d61dbbcf1a18e549073a7
Showing with 2 additions and 2 deletions.
  1. +2 −2 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)

0 comments on commit b38afc9

Please sign in to comment.
You can’t perform that action at this time.