Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Mgv7: Do not limit river generation if no floatlands
Previously, the carving of rivers was disabled above 'shadow_limit' even if
floatlands were disabled. This caused rivers to be unnecessarily disabled if
mapgen was customised to have surface level above y = 1024.
  • Loading branch information
paramat committed Jun 19, 2017
1 parent ea4d407 commit 0c429bd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/mapgen_v7.cpp
Expand Up @@ -519,7 +519,8 @@ int MapgenV7::generateTerrain()

void MapgenV7::generateRidgeTerrain()
{
if ((node_max.Y < water_level - 16) || (node_max.Y > shadow_limit))
if (node_max.Y < water_level - 16 ||
((spflags & MGV7_FLOATLANDS) && node_max.Y > shadow_limit))
return;

noise_ridge->perlinMap3D(node_min.X, node_min.Y - 1, node_min.Z);
Expand Down

0 comments on commit 0c429bd

Please sign in to comment.