diff options
author | madmaxoft <github@xoft.cz> | 2014-06-10 18:27:17 +0200 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2014-06-10 18:27:17 +0200 |
commit | c259dad7b8561c9712c8e2c5c55d6399e9d26325 (patch) | |
tree | 9b6fe1cd36c03e889e49a60c2254c99fbb8c932f | |
parent | Fixed a race condition when adding a player to a world. (diff) | |
download | cuberite-c259dad7b8561c9712c8e2c5c55d6399e9d26325.tar cuberite-c259dad7b8561c9712c8e2c5c55d6399e9d26325.tar.gz cuberite-c259dad7b8561c9712c8e2c5c55d6399e9d26325.tar.bz2 cuberite-c259dad7b8561c9712c8e2c5c55d6399e9d26325.tar.lz cuberite-c259dad7b8561c9712c8e2c5c55d6399e9d26325.tar.xz cuberite-c259dad7b8561c9712c8e2c5c55d6399e9d26325.tar.zst cuberite-c259dad7b8561c9712c8e2c5c55d6399e9d26325.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Noise.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Noise.cpp b/src/Noise.cpp index e2e54efdf..040421106 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] = abs(a_Workspace[i] * Amplitude); + a_Array[i] = fabs(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] += abs(a_Workspace[i] * Amplitude); + a_Array[i] += fabs(a_Workspace[i] * Amplitude); } } |