summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-06-10 09:20:32 +0200
committermadmaxoft <github@xoft.cz>2014-06-10 09:20:32 +0200
commit6c43799cc558a435a03d82218738a9ff57fb6702 (patch)
tree0d51d289e06d701a22bbb03ac79f4724c5b00797
parentAdded an experimental height generator, Mountains. (diff)
downloadcuberite-6c43799cc558a435a03d82218738a9ff57fb6702.tar
cuberite-6c43799cc558a435a03d82218738a9ff57fb6702.tar.gz
cuberite-6c43799cc558a435a03d82218738a9ff57fb6702.tar.bz2
cuberite-6c43799cc558a435a03d82218738a9ff57fb6702.tar.lz
cuberite-6c43799cc558a435a03d82218738a9ff57fb6702.tar.xz
cuberite-6c43799cc558a435a03d82218738a9ff57fb6702.tar.zst
cuberite-6c43799cc558a435a03d82218738a9ff57fb6702.zip
Diffstat (limited to '')
-rw-r--r--src/Noise.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Noise.cpp b/src/Noise.cpp
index 9c7042b02..e2e54efdf 100644
--- a/src/Noise.cpp
+++ b/src/Noise.cpp
@@ -1022,7 +1022,7 @@ void cRidgedMultiNoise::Generate2D(
NOISE_DATATYPE Amplitude = FirstOctave.m_Amplitude;
for (int i = 0; i < ArrayCount; i++)
{
- a_Array[i] = std::abs(a_Workspace[i] * Amplitude);
+ a_Array[i] = abs(a_Workspace[i] * Amplitude);
}
// Add each octave:
@@ -1038,7 +1038,7 @@ void cRidgedMultiNoise::Generate2D(
NOISE_DATATYPE Amplitude = itr->m_Amplitude;
for (int i = 0; i < ArrayCount; i++)
{
- a_Array[i] += std::abs(a_Workspace[i] * Amplitude);
+ a_Array[i] += abs(a_Workspace[i] * Amplitude);
}
}