summaryrefslogtreecommitdiffstats
path: root/source/Generating/StructGen.cpp
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-05-12 19:55:49 +0200
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-05-12 19:55:49 +0200
commit1927095d25614bcec73f93e74424110d3feefc7f (patch)
treef24bafbd79baf304f3ff7633f25be64b06cf5f21 /source/Generating/StructGen.cpp
parentcWorld: Temporary fix for FS #338 (diff)
downloadcuberite-1927095d25614bcec73f93e74424110d3feefc7f.tar
cuberite-1927095d25614bcec73f93e74424110d3feefc7f.tar.gz
cuberite-1927095d25614bcec73f93e74424110d3feefc7f.tar.bz2
cuberite-1927095d25614bcec73f93e74424110d3feefc7f.tar.lz
cuberite-1927095d25614bcec73f93e74424110d3feefc7f.tar.xz
cuberite-1927095d25614bcec73f93e74424110d3feefc7f.tar.zst
cuberite-1927095d25614bcec73f93e74424110d3feefc7f.zip
Diffstat (limited to 'source/Generating/StructGen.cpp')
-rw-r--r--source/Generating/StructGen.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/source/Generating/StructGen.cpp b/source/Generating/StructGen.cpp
index 044e789b5..e5ac03b49 100644
--- a/source/Generating/StructGen.cpp
+++ b/source/Generating/StructGen.cpp
@@ -6,6 +6,7 @@
#include "../BlockID.h"
#include "Trees.h"
#include "../BlockArea.h"
+#include "../LinearUpscale.h"
@@ -558,7 +559,7 @@ void cStructGenDirectOverhangs::GenStructures(cChunkDesc & a_ChunkDesc)
m_Noise2.IntNoise3DInt(BaseX + INTERPOL_X * x, BaseY, BaseZ + INTERPOL_Z * z) /
256;
} // for x, z - FloorLo[]
- IntArrayLinearInterpolate2D(FloorLo, 17, 17, INTERPOL_X, INTERPOL_Z);
+ ArrayLinearUpscale2D(FloorLo, 17, 17, INTERPOL_X, INTERPOL_Z);
// Interpolate segments:
for (int Segment = BaseY; Segment < MaxHeight; Segment += SEGMENT_HEIGHT)
@@ -571,7 +572,7 @@ void cStructGenDirectOverhangs::GenStructures(cChunkDesc & a_ChunkDesc)
m_Noise2.IntNoise3DInt(BaseX + INTERPOL_Z * x, Segment + SEGMENT_HEIGHT, BaseZ + INTERPOL_Z * z) /
256;
} // for x, z - FloorLo[]
- IntArrayLinearInterpolate2D(FloorHi, 17, 17, INTERPOL_X, INTERPOL_Z);
+ ArrayLinearUpscale2D(FloorHi, 17, 17, INTERPOL_X, INTERPOL_Z);
// Interpolate between FloorLo and FloorHi:
for (int z = 0; z < 16; z++) for (int x = 0; x < 16; x++)