From d02300a749ee35ba195e4e50c6464832302a387b Mon Sep 17 00:00:00 2001 From: paramat Date: Thu, 16 Apr 2015 06:16:54 +0100 Subject: [PATCH] Mgv5: Fix above/below ground spawn when water level is altered --- src/mapgen_v5.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mapgen_v5.cpp b/src/mapgen_v5.cpp index 6c3d678e..887ce2a5 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;