summaryrefslogtreecommitdiffstats
path: root/src/Generating/Caves.cpp
diff options
context:
space:
mode:
authorAlexander Harkness <me@bearbin.net>2014-09-22 14:33:41 +0200
committerAlexander Harkness <me@bearbin.net>2014-09-22 14:33:41 +0200
commitb9b45e82876caf51cf486b72c811aa49ef67b1ed (patch)
treee39037971290a1b9fa6343c0c8f846541096d435 /src/Generating/Caves.cpp
parentQtBiomeVisualiser: Added the base for INI editting. (diff)
parentMade it compile with clang (diff)
downloadcuberite-b9b45e82876caf51cf486b72c811aa49ef67b1ed.tar
cuberite-b9b45e82876caf51cf486b72c811aa49ef67b1ed.tar.gz
cuberite-b9b45e82876caf51cf486b72c811aa49ef67b1ed.tar.bz2
cuberite-b9b45e82876caf51cf486b72c811aa49ef67b1ed.tar.lz
cuberite-b9b45e82876caf51cf486b72c811aa49ef67b1ed.tar.xz
cuberite-b9b45e82876caf51cf486b72c811aa49ef67b1ed.tar.zst
cuberite-b9b45e82876caf51cf486b72c811aa49ef67b1ed.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);
}