diff options
author | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-02-22 18:04:04 +0100 |
---|---|---|
committer | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-02-22 18:04:04 +0100 |
commit | 1cb756cbf2611693ec21eec9fd98e4367bb7d918 (patch) | |
tree | aee6ec88277f768365d02727a61e4cd925584ba3 /source/cNoise.inc | |
parent | WorldGenerator: fixed small foliage - cacti now generate only at beaches, not underwater. (diff) | |
download | cuberite-1cb756cbf2611693ec21eec9fd98e4367bb7d918.tar cuberite-1cb756cbf2611693ec21eec9fd98e4367bb7d918.tar.gz cuberite-1cb756cbf2611693ec21eec9fd98e4367bb7d918.tar.bz2 cuberite-1cb756cbf2611693ec21eec9fd98e4367bb7d918.tar.lz cuberite-1cb756cbf2611693ec21eec9fd98e4367bb7d918.tar.xz cuberite-1cb756cbf2611693ec21eec9fd98e4367bb7d918.tar.zst cuberite-1cb756cbf2611693ec21eec9fd98e4367bb7d918.zip |
Diffstat (limited to 'source/cNoise.inc')
-rw-r--r-- | source/cNoise.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/cNoise.inc b/source/cNoise.inc index a63bb0c2f..fd52fef37 100644 --- a/source/cNoise.inc +++ b/source/cNoise.inc @@ -36,7 +36,7 @@ float cNoise::CubicInterpolate( float a_A, float a_B, float a_C, float a_D, floa float R = a_C - a_A;
float S = a_B;
- return P*(a_Pct*a_Pct*a_Pct) + Q*(a_Pct*a_Pct) + R*a_Pct + S;
+ return ((P * a_Pct + Q) * a_Pct + R) * a_Pct + S;
}
float cNoise::CosineInterpolate( float a_A, float a_B, float a_Pct ) const
|