summaryrefslogtreecommitdiffstats
path: root/src/Generating/CompoGen.cpp
diff options
context:
space:
mode:
authorSTRWarrior <niels.breuker@hotmail.nl>2014-01-09 13:30:04 +0100
committerSTRWarrior <niels.breuker@hotmail.nl>2014-01-09 13:30:04 +0100
commit6c75cbc8d75b5a2ba9ee071740edd43efeaac1e9 (patch)
tree5611537492a0a45f2574ea73b875586a9218b437 /src/Generating/CompoGen.cpp
parentSpeed-up. I got about 40 extra ch/s (diff)
downloadcuberite-6c75cbc8d75b5a2ba9ee071740edd43efeaac1e9.tar
cuberite-6c75cbc8d75b5a2ba9ee071740edd43efeaac1e9.tar.gz
cuberite-6c75cbc8d75b5a2ba9ee071740edd43efeaac1e9.tar.bz2
cuberite-6c75cbc8d75b5a2ba9ee071740edd43efeaac1e9.tar.lz
cuberite-6c75cbc8d75b5a2ba9ee071740edd43efeaac1e9.tar.xz
cuberite-6c75cbc8d75b5a2ba9ee071740edd43efeaac1e9.tar.zst
cuberite-6c75cbc8d75b5a2ba9ee071740edd43efeaac1e9.zip
Diffstat (limited to 'src/Generating/CompoGen.cpp')
-rw-r--r--src/Generating/CompoGen.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Generating/CompoGen.cpp b/src/Generating/CompoGen.cpp
index 3545863fe..8d6c918ca 100644
--- a/src/Generating/CompoGen.cpp
+++ b/src/Generating/CompoGen.cpp
@@ -592,9 +592,9 @@ void cCompoGenNether::ComposeTerrain(cChunkDesc & a_ChunkDesc)
BLOCKTYPE Block = E_BLOCK_AIR;
if (Val < m_Threshold) // Don't calculate if the block should be Netherrack or Soulsand when it's already decided that it's air.
{
- NOISE_DATATYPE NoiseX = ((NOISE_DATATYPE)(BaseX * cChunkDef::Width + x)) / 8;
- NOISE_DATATYPE NoiseY = ((NOISE_DATATYPE)(BaseZ * cChunkDef::Width + z)) / 8;
- NOISE_DATATYPE CompBlock = m_Noise1.CubicNoise3D(NoiseX, (float) y, NoiseY);
+ NOISE_DATATYPE NoiseX = ((NOISE_DATATYPE)(BaseX + x)) / 8;
+ NOISE_DATATYPE NoiseY = ((NOISE_DATATYPE)(BaseZ + z)) / 8;
+ NOISE_DATATYPE CompBlock = m_Noise1.CubicNoise3D(NoiseX, (float) y / 2, NoiseY);
if (CompBlock < -0.5)
{
Block = E_BLOCK_SOULSAND;