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.master
parent
ea4d407082
commit
0c429bd164
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue