Mgv5: Fix above/below ground spawn when water level is altered

This commit is contained in:
paramat 2015-04-16 06:16:54 +01:00
parent ad789be45b
commit d02300a749
1 changed files with 1 additions and 1 deletions

View File

@ -175,7 +175,7 @@ int MapgenV5::getGroundLevelAtPoint(v2s16 p)
f = 0.01; f = 0.01;
else if (f >= 1.0) else if (f >= 1.0)
f *= 1.6; 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_top = water_level + 15;
s16 search_base = water_level; s16 search_base = water_level;