projects
/
oweals
/
minetest.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
48a718e
)
Mgvalleys: Correct spawn problems
author
Duane Robertson
<duane@duanerobertson.com>
Wed, 2 Mar 2016 01:50:35 +0000
(19:50 -0600)
committer
paramat
<mat.gregory@virginmedia.com>
Fri, 4 Mar 2016 02:39:04 +0000
(
02:39
+0000)
Increase maximum spawn altitude to reduce spawn issues.
src/mapgen_valleys.cpp
patch
|
blob
|
history
diff --git
a/src/mapgen_valleys.cpp
b/src/mapgen_valleys.cpp
index f9625746be4307f9a97972541e3fe03c86ebbb17..d6fcde5f78b90c9cb8c24636c53120eaba98cc36 100644
(file)
--- 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;