diff options
author | Mattes D <github@xoft.cz> | 2014-12-05 16:59:11 +0100 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2014-12-05 16:59:11 +0100 |
commit | e2a04f580a0813206f527a61244cb3382248fd12 (patch) | |
tree | 39f0a5026d619e89ce353cf8addf18e4a696b067 /src/Generating/Caves.cpp | |
parent | CheckBasicStyle: Added a check for parentheses around comparisons. (diff) | |
download | cuberite-e2a04f580a0813206f527a61244cb3382248fd12.tar cuberite-e2a04f580a0813206f527a61244cb3382248fd12.tar.gz cuberite-e2a04f580a0813206f527a61244cb3382248fd12.tar.bz2 cuberite-e2a04f580a0813206f527a61244cb3382248fd12.tar.lz cuberite-e2a04f580a0813206f527a61244cb3382248fd12.tar.xz cuberite-e2a04f580a0813206f527a61244cb3382248fd12.tar.zst cuberite-e2a04f580a0813206f527a61244cb3382248fd12.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Generating/Caves.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/Generating/Caves.cpp b/src/Generating/Caves.cpp index fc925a150..e4735cb83 100644 --- a/src/Generating/Caves.cpp +++ b/src/Generating/Caves.cpp @@ -692,8 +692,14 @@ static float GetMarbleNoise( float x, float y, float z, cNoise & a_Noise) 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; - if (oct1 > PI_2) oct1 = PI_2; + if (oct1 < 0.f) + { + oct1 = PI_2; + } + if (oct1 > PI_2) + { + oct1 = PI_2; + } return oct1; } |