summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
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);
}
}