diff options
author | madmaxoft <github@xoft.cz> | 2014-07-21 15:19:48 +0200 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2014-07-21 17:40:43 +0200 |
commit | 93d29555e58df172bafba530afbc593c16ec66a3 (patch) | |
tree | 681174bef875ffd821d7d87602f2063251f25673 /src/Generating/Caves.cpp | |
parent | Style: Normalized spaces after if, for and while. (diff) | |
download | cuberite-93d29555e58df172bafba530afbc593c16ec66a3.tar cuberite-93d29555e58df172bafba530afbc593c16ec66a3.tar.gz cuberite-93d29555e58df172bafba530afbc593c16ec66a3.tar.bz2 cuberite-93d29555e58df172bafba530afbc593c16ec66a3.tar.lz cuberite-93d29555e58df172bafba530afbc593c16ec66a3.tar.xz cuberite-93d29555e58df172bafba530afbc593c16ec66a3.tar.zst cuberite-93d29555e58df172bafba530afbc593c16ec66a3.zip |
Diffstat (limited to 'src/Generating/Caves.cpp')
-rw-r--r-- | src/Generating/Caves.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Generating/Caves.cpp b/src/Generating/Caves.cpp index 21bfd98b8..3b71efb57 100644 --- a/src/Generating/Caves.cpp +++ b/src/Generating/Caves.cpp @@ -703,10 +703,10 @@ cGridStructGen::cStructurePtr cStructGenWormNestCaves::CreateStructure(int a_Gri //////////////////////////////////////////////////////////////////////////////// // cStructGenMarbleCaves: -static float GetMarbleNoise( float x, float y, float z, cNoise & a_Noise ) +static float GetMarbleNoise( float x, float y, float z, cNoise & a_Noise) { static const float PI_2 = 1.57079633f; - float oct1 = (a_Noise.CubicNoise3D(x * 0.1f, y * 0.1f, z * 0.1f )) * 4; + float oct1 = (a_Noise.CubicNoise3D(x * 0.1f, y * 0.1f, z * 0.1f)) * 4; oct1 = oct1 * oct1 * oct1; if (oct1 < 0.f) oct1 = PI_2; @@ -730,7 +730,7 @@ void cStructGenMarbleCaves::GenFinish(cChunkDesc & a_ChunkDesc) const float xx = (float)(a_ChunkDesc.GetChunkX() * cChunkDef::Width + x); int Top = a_ChunkDesc.GetHeight(x, z); - for (int y = 1; y < Top; ++y ) + for (int y = 1; y < Top; ++y) { if (a_ChunkDesc.GetBlockType(x, y, z) != E_BLOCK_STONE) { |