aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorparamat <mat.gregory@virginmedia.com>2015-04-16 06:16:54 +0100
committerparamat <mat.gregory@virginmedia.com>2015-04-16 06:36:57 +0100
commitd02300a749ee35ba195e4e50c6464832302a387b (patch)
treed8dba945d9c3c961bab60dc66f110a38334dc759 /src
parentad789be45b1ec1333f5908b89efd85f5b29fb940 (diff)
downloadminetest-d02300a749ee35ba195e4e50c6464832302a387b.tar.gz
minetest-d02300a749ee35ba195e4e50c6464832302a387b.tar.bz2
minetest-d02300a749ee35ba195e4e50c6464832302a387b.zip
Mgv5: Fix above/below ground spawn when water level is altered
Diffstat (limited to 'src')
-rw-r--r--src/mapgen_v5.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mapgen_v5.cpp b/src/mapgen_v5.cpp
index 6c3d678ea..887ce2a5d 100644
--- a/src/mapgen_v5.cpp
+++ b/src/mapgen_v5.cpp
@@ -175,7 +175,7 @@ int MapgenV5::getGroundLevelAtPoint(v2s16 p)
f = 0.01;
else if (f >= 1.0)
f *= 1.6;
- float h = water_level + NoisePerlin2D(&noise_height->np, p.X, p.Y, seed);
+ float h = NoisePerlin2D(&noise_height->np, p.X, p.Y, seed);
s16 search_top = water_level + 15;
s16 search_base = water_level;