aboutsummaryrefslogtreecommitdiff
path: root/src/mapgen_valleys.cpp
diff options
context:
space:
mode:
authorDuane Robertson <duane@duanerobertson.com>2016-03-01 19:50:35 -0600
committerparamat <mat.gregory@virginmedia.com>2016-03-04 02:39:04 +0000
commitaf714c7ade02d3f645671276a0f0514f5099b59e (patch)
tree7780b13c9cf9a810c7ad84a61016397eab7ac0a2 /src/mapgen_valleys.cpp
parent48a718e715710c9cb7edd6ad8e1cd7a0ed416908 (diff)
downloadminetest-af714c7ade02d3f645671276a0f0514f5099b59e.tar.gz
minetest-af714c7ade02d3f645671276a0f0514f5099b59e.tar.bz2
minetest-af714c7ade02d3f645671276a0f0514f5099b59e.zip
Mgvalleys: Correct spawn problems
Increase maximum spawn altitude to reduce spawn issues.
Diffstat (limited to 'src/mapgen_valleys.cpp')
-rw-r--r--src/mapgen_valleys.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mapgen_valleys.cpp b/src/mapgen_valleys.cpp
index f9625746b..d6fcde5f7 100644
--- a/src/mapgen_valleys.cpp
+++ b/src/mapgen_valleys.cpp
@@ -536,7 +536,7 @@ int MapgenValleys::getSpawnLevelAtPoint(v2s16 p)
s16 level_at_point = terrainLevelAtPoint(p.X, p.Y);
if (level_at_point <= water_level ||
- level_at_point > water_level + 16)
+ level_at_point > water_level + 32)
return MAX_MAP_GENERATION_LIMIT; // Unsuitable spawn point
else
return level_at_point;