summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSTRWarrior <niels.breuker@hotmail.nl>2013-12-26 14:37:48 +0100
committerSTRWarrior <niels.breuker@hotmail.nl>2013-12-26 14:37:48 +0100
commit6884d4235ea81f64d79ee24c7aae7c91694ed47a (patch)
tree9527236b7e8f1b2f8a04e7db91543efdeda53c87
parentExtreme Hills M biomes now generate gravel, stone and grass patterns. (diff)
downloadcuberite-6884d4235ea81f64d79ee24c7aae7c91694ed47a.tar
cuberite-6884d4235ea81f64d79ee24c7aae7c91694ed47a.tar.gz
cuberite-6884d4235ea81f64d79ee24c7aae7c91694ed47a.tar.bz2
cuberite-6884d4235ea81f64d79ee24c7aae7c91694ed47a.tar.lz
cuberite-6884d4235ea81f64d79ee24c7aae7c91694ed47a.tar.xz
cuberite-6884d4235ea81f64d79ee24c7aae7c91694ed47a.tar.zst
cuberite-6884d4235ea81f64d79ee24c7aae7c91694ed47a.zip
Diffstat (limited to '')
-rw-r--r--src/Generating/DistortedHeightmap.cpp14
1 files changed, 3 insertions, 11 deletions
diff --git a/src/Generating/DistortedHeightmap.cpp b/src/Generating/DistortedHeightmap.cpp
index 0a4a0940a..15e352e30 100644
--- a/src/Generating/DistortedHeightmap.cpp
+++ b/src/Generating/DistortedHeightmap.cpp
@@ -753,7 +753,7 @@ void cDistortedHeightmap::ComposeColumn(cChunkDesc & a_ChunkDesc, int a_RelX, in
case biExtremeHillsPlus:
case biExtremeHills:
{
- // Select the pattern to use - gravel or grass:
+ // Select the pattern to use - stone or grass:
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);
@@ -765,19 +765,11 @@ void cDistortedHeightmap::ComposeColumn(cChunkDesc & a_ChunkDesc, int a_RelX, in
case biExtremeHillsPlusM:
case biExtremeHillsM:
{
- // Select the pattern to use - gravel or grass:
+ // Select the pattern to use - gravel, stone or grass:
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;
- if (Val <= 0.0)
- {
- Pattern = (Val < -0.3) ? patGravel.Get() : patGrass.Get();
- }
- else
- {
- Pattern = (Val < 0.3) ? patStone.Get() : patGrass.Get();
- }
+ const sBlockInfo * Pattern = (Val < -0.9) ? patStone.Get() : ((Val > 0) ? patGravel.Get() : patGrass.Get());
FillColumnPattern(a_ChunkDesc, a_RelX, a_RelZ, Pattern);
return;
}