summaryrefslogtreecommitdiffstats
path: root/src/Generating/DistortedHeightmap.cpp
diff options
context:
space:
mode:
authorSTRWarrior <niels.breuker@hotmail.nl>2014-07-22 14:44:26 +0200
committerSTRWarrior <niels.breuker@hotmail.nl>2014-07-22 14:44:26 +0200
commit5b148c30f71874d62b55a5134fd4c7897ebe106a (patch)
tree4a80ce00be9f3b4df9bb90d854357fdae913b986 /src/Generating/DistortedHeightmap.cpp
parentExtremeHillsPlus and ExtremeHills spawn with grass only (diff)
downloadcuberite-5b148c30f71874d62b55a5134fd4c7897ebe106a.tar
cuberite-5b148c30f71874d62b55a5134fd4c7897ebe106a.tar.gz
cuberite-5b148c30f71874d62b55a5134fd4c7897ebe106a.tar.bz2
cuberite-5b148c30f71874d62b55a5134fd4c7897ebe106a.tar.lz
cuberite-5b148c30f71874d62b55a5134fd4c7897ebe106a.tar.xz
cuberite-5b148c30f71874d62b55a5134fd4c7897ebe106a.tar.zst
cuberite-5b148c30f71874d62b55a5134fd4c7897ebe106a.zip
Diffstat (limited to 'src/Generating/DistortedHeightmap.cpp')
-rw-r--r--src/Generating/DistortedHeightmap.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Generating/DistortedHeightmap.cpp b/src/Generating/DistortedHeightmap.cpp
index 74d30c327..1337896ab 100644
--- a/src/Generating/DistortedHeightmap.cpp
+++ b/src/Generating/DistortedHeightmap.cpp
@@ -759,7 +759,7 @@ 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.9) ? patStone.Get() : ((Val > 0) ? patGravel.Get() : patGrass.Get());
+ const sBlockInfo * Pattern = (Val < 0.0) ? patStone.Get() : patGrass.Get();
FillColumnPattern(a_ChunkDesc, a_RelX, a_RelZ, Pattern);
return;
}