Fixed > 4 to >= 4 in min height check for shore generation (#17280)

This commit is contained in:
Ken Reese authored and GitHub committed 2022-05-25 06:48:10 +01:00
1 parent e90ebb38ce
commit 5d52f4fd31
1 file changed
+1 -1
+1 -1
View File
@@ -486,7 +486,7 @@ static void mapgen_set_height(mapgen_settings* settings)
surfaceElement->base_height = std::max(2, baseHeight * 2);
// If base height is below water level, lower it to create more natural shorelines
if (surfaceElement->base_height > 4 && surfaceElement->base_height <= settings->water_level)
if (surfaceElement->base_height >= 4 && surfaceElement->base_height <= settings->water_level)
surfaceElement->base_height -= 2;
surfaceElement->clearance_height = surfaceElement->base_height;