summaryrefslogtreecommitdiffstats
path: root/src/Generating/DistortedHeightmap.cpp
diff options
context:
space:
mode:
authorSTRWarrior <niels.breuker@hotmail.nl>2013-12-25 23:18:33 +0100
committerSTRWarrior <niels.breuker@hotmail.nl>2013-12-25 23:18:33 +0100
commitb767fd784c1ccc563f3e11cefa0eb825732cd284 (patch)
treeafb81bd51cce9a4b7b4ad9ccb064776559d4e4c7 /src/Generating/DistortedHeightmap.cpp
parentChanged tbGravel. Vanilla has 3 layers of gravel and then stone. (diff)
downloadcuberite-b767fd784c1ccc563f3e11cefa0eb825732cd284.tar
cuberite-b767fd784c1ccc563f3e11cefa0eb825732cd284.tar.gz
cuberite-b767fd784c1ccc563f3e11cefa0eb825732cd284.tar.bz2
cuberite-b767fd784c1ccc563f3e11cefa0eb825732cd284.tar.lz
cuberite-b767fd784c1ccc563f3e11cefa0eb825732cd284.tar.xz
cuberite-b767fd784c1ccc563f3e11cefa0eb825732cd284.tar.zst
cuberite-b767fd784c1ccc563f3e11cefa0eb825732cd284.zip
Diffstat (limited to '')
-rw-r--r--src/Generating/DistortedHeightmap.cpp12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/Generating/DistortedHeightmap.cpp b/src/Generating/DistortedHeightmap.cpp
index b6f3866e4..0a4a0940a 100644
--- a/src/Generating/DistortedHeightmap.cpp
+++ b/src/Generating/DistortedHeightmap.cpp
@@ -111,7 +111,7 @@ static cDistortedHeightmap::sBlockInfo tbGravel[] =
static cDistortedHeightmap::sBlockInfo tbStone[] =
{
- {E_BLOCK_STONE, 0},
+ {E_BLOCK_STONE, 0},
{E_BLOCK_STONE, 0},
{E_BLOCK_STONE, 0},
{E_BLOCK_STONE, 0},
@@ -769,7 +769,15 @@ void cDistortedHeightmap::ComposeColumn(cChunkDesc & a_ChunkDesc, int a_RelX, in
NOISE_DATATYPE NoiseX = ((NOISE_DATATYPE)(m_CurChunkX * cChunkDef::Width + a_RelX)) / FrequencyX;
NOISE_DATATYPE NoiseY = ((NOISE_DATATYPE)(m_CurChunkZ * cChunkDef::Width + a_RelZ)) / FrequencyZ;
NOISE_DATATYPE Val = m_OceanFloorSelect.CubicNoise2D(NoiseX, NoiseY);
- const sBlockInfo * Pattern = (Val < -0.1) ? patGravel.Get() : patGrass.Get();
+ const sBlockInfo * Pattern;
+ if (Val <= 0.0)
+ {
+ Pattern = (Val < -0.3) ? patGravel.Get() : patGrass.Get();
+ }
+ else
+ {
+ Pattern = (Val < 0.3) ? patStone.Get() : patGrass.Get();
+ }
FillColumnPattern(a_ChunkDesc, a_RelX, a_RelZ, Pattern);
return;
}