Permalink
Browse files

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...
1 parent ea4d407 commit 0c429bd1645d738e721f713429d8ba83c3964b8f @paramat paramat committed with paramat Jun 18, 2017
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/mapgen_v7.cpp
View
@@ -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);

0 comments on commit 0c429bd

Please sign in to comment.