summaryrefslogtreecommitdiffstats
path: root/src/Generating/Caves.cpp
diff options
context:
space:
mode:
authorChris Darnell <chris@cedeel.com>2014-09-22 09:22:36 +0200
committerChris Darnell <chris@cedeel.com>2014-09-22 09:22:36 +0200
commit195b646aa4189ec9858f4994754eadd2c05ef9df (patch)
treee39037971290a1b9fa6343c0c8f846541096d435 /src/Generating/Caves.cpp
parentQtBiomeVisualiser: Added the base for INI editting. (diff)
downloadcuberite-195b646aa4189ec9858f4994754eadd2c05ef9df.tar
cuberite-195b646aa4189ec9858f4994754eadd2c05ef9df.tar.gz
cuberite-195b646aa4189ec9858f4994754eadd2c05ef9df.tar.bz2
cuberite-195b646aa4189ec9858f4994754eadd2c05ef9df.tar.lz
cuberite-195b646aa4189ec9858f4994754eadd2c05ef9df.tar.xz
cuberite-195b646aa4189ec9858f4994754eadd2c05ef9df.tar.zst
cuberite-195b646aa4189ec9858f4994754eadd2c05ef9df.zip
Diffstat (limited to 'src/Generating/Caves.cpp')
-rw-r--r--src/Generating/Caves.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Generating/Caves.cpp b/src/Generating/Caves.cpp
index 71154dff9..fc925a150 100644
--- a/src/Generating/Caves.cpp
+++ b/src/Generating/Caves.cpp
@@ -755,7 +755,7 @@ void cStructGenDualRidgeCaves::GenFinish(cChunkDesc & a_ChunkDesc)
float n2 = m_Noise2.CubicNoise3D(xx, yy, zz);
float n3 = m_Noise1.CubicNoise3D(xx * 4, yy * 4, zz * 4) / 4;
float n4 = m_Noise2.CubicNoise3D(xx * 4, yy * 4, zz * 4) / 4;
- if ((abs(n1 + n3) * abs(n2 + n4)) > m_Threshold)
+ if ((std::abs(n1 + n3) * std::abs(n2 + n4)) > m_Threshold)
{
a_ChunkDesc.SetBlockType(x, y, z, E_BLOCK_AIR);
}