diff options
author | paramat <paramat@users.noreply.github.com> | 2017-07-17 17:27:35 +0100 |
---|---|---|
committer | paramat <mat.gregory@virginmedia.com> | 2017-07-17 20:19:43 +0100 |
commit | 5117ce4c901eb6ef07ce87b963a92535b312e659 (patch) | |
tree | 91567a41cab11822d1580e6048d3ab1012eed9f3 /src/mapgen_fractal.cpp | |
parent | 20936e1c3e3ccc0bea2fbf212ebfff11f3cda8c3 (diff) | |
download | minetest-5117ce4c901eb6ef07ce87b963a92535b312e659.tar.xz |
Mgfractal: Improve spawning behaviour
Spawn player 1 node higher to avoid spawning waist-deep in a possible
biome 'dust' node, such as tundra snowblock.
Tune default offset to spawn players in a more interesting location on the
mandelbrot sets, on a raised area that looks like a spawn platform.
Tune julia parameters to help avoid spawn search failing, especially for
fractal 6.
Diffstat (limited to 'src/mapgen_fractal.cpp')
-rw-r--r-- | src/mapgen_fractal.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mapgen_fractal.cpp b/src/mapgen_fractal.cpp index 13da2f180..720408dbb 100644 --- a/src/mapgen_fractal.cpp +++ b/src/mapgen_fractal.cpp @@ -156,7 +156,8 @@ int MapgenFractal::getSpawnLevelAtPoint(v2s16 p) air_count = 0; } else if (solid_below) { // Air above solid node air_count++; - if (air_count == 2) + // 3 to account for snowblock dust + if (air_count == 3) return y - 2; } } |