summaryrefslogtreecommitdiffstats
path: root/src/Generating
diff options
context:
space:
mode:
authorSTRWarrior <niels.breuker@hotmail.nl>2015-04-21 16:01:27 +0200
committerSTRWarrior <niels.breuker@hotmail.nl>2015-04-21 16:01:27 +0200
commitcc67a8bde9219ff5cc435ad702627792ca8bc76f (patch)
tree26279aad4fbb7b05cfc55ffb4f45963e6f550284 /src/Generating
parentChanged Nether composition to change the threshold from a cubic noise (diff)
downloadcuberite-cc67a8bde9219ff5cc435ad702627792ca8bc76f.tar
cuberite-cc67a8bde9219ff5cc435ad702627792ca8bc76f.tar.gz
cuberite-cc67a8bde9219ff5cc435ad702627792ca8bc76f.tar.bz2
cuberite-cc67a8bde9219ff5cc435ad702627792ca8bc76f.tar.lz
cuberite-cc67a8bde9219ff5cc435ad702627792ca8bc76f.tar.xz
cuberite-cc67a8bde9219ff5cc435ad702627792ca8bc76f.tar.zst
cuberite-cc67a8bde9219ff5cc435ad702627792ca8bc76f.zip
Diffstat (limited to '')
-rw-r--r--src/Generating/CompoGen.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/Generating/CompoGen.cpp b/src/Generating/CompoGen.cpp
index 744979cc1..b33a157d0 100644
--- a/src/Generating/CompoGen.cpp
+++ b/src/Generating/CompoGen.cpp
@@ -229,8 +229,6 @@ cCompoGenNether::cCompoGenNether(int a_Seed) :
void cCompoGenNether::ComposeTerrain(cChunkDesc & a_ChunkDesc, const cChunkDesc::Shape & a_Shape)
{
HEIGHTTYPE MaxHeight = a_ChunkDesc.GetMaxHeight();
-
- int Threshold = static_cast<int>(m_Noise1.CubicNoise2D(static_cast<float>(a_ChunkDesc.GetChunkX()) / 50, static_cast<float>(a_ChunkDesc.GetChunkZ()) / 50) * m_MaxThreshold);
const int SEGMENT_HEIGHT = 8;
const int INTERPOL_X = 16; // Must be a divisor of 16
@@ -284,6 +282,7 @@ void cCompoGenNether::ComposeTerrain(cChunkDesc & a_ChunkDesc, const cChunkDesc:
// Interpolate between FloorLo and FloorHi:
for (int z = 0; z < 16; z++) for (int x = 0; x < 16; x++)
{
+ int Threshold = static_cast<int>(m_Noise1.CubicNoise2D(static_cast<float>(BaseX + x) / 75, static_cast<float>(BaseZ + z) / 75) * m_MaxThreshold);
int Lo = FloorLo[x + 17 * z] / 256;
int Hi = FloorHi[x + 17 * z] / 256;
for (int y = 0; y < SEGMENT_HEIGHT; y++)