summaryrefslogtreecommitdiffstats
path: root/src/Generating/Noise3DGenerator.cpp
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2014-11-09 15:33:01 +0100
committerMattes D <github@xoft.cz>2014-11-09 15:33:01 +0100
commit5993c06bd7ab5f02aabb4790570c86699189e219 (patch)
treef14b1b648b90dd961a5ae7afb55cc5fbfd4a31a8 /src/Generating/Noise3DGenerator.cpp
parentNoise3D generator: rewritten from scratch. (diff)
downloadcuberite-5993c06bd7ab5f02aabb4790570c86699189e219.tar
cuberite-5993c06bd7ab5f02aabb4790570c86699189e219.tar.gz
cuberite-5993c06bd7ab5f02aabb4790570c86699189e219.tar.bz2
cuberite-5993c06bd7ab5f02aabb4790570c86699189e219.tar.lz
cuberite-5993c06bd7ab5f02aabb4790570c86699189e219.tar.xz
cuberite-5993c06bd7ab5f02aabb4790570c86699189e219.tar.zst
cuberite-5993c06bd7ab5f02aabb4790570c86699189e219.zip
Diffstat (limited to '')
-rw-r--r--src/Generating/Noise3DGenerator.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Generating/Noise3DGenerator.cpp b/src/Generating/Noise3DGenerator.cpp
index 4292c66e5..885a9bab3 100644
--- a/src/Generating/Noise3DGenerator.cpp
+++ b/src/Generating/Noise3DGenerator.cpp
@@ -83,7 +83,7 @@ inline static NOISE_DATATYPE ClampedLerp(NOISE_DATATYPE a_Val1, NOISE_DATATYPE a
{
return a_Val2;
}
- return a_Val1 + (a_Val2 - a_Val1) * a_Ratio;
+ return Lerp(a_Val1, a_Val2, a_Ratio);
}