summaryrefslogtreecommitdiffstats
path: root/source/Generating/CompoGen.cpp
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-05-12 23:11:25 +0200
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-05-12 23:11:25 +0200
commit0a08ae14f69f5179c5d8990c41d1d8dbb63be346 (patch)
tree52a80f3a7b77f1bb0fdf6bcd225c9d1e68270383 /source/Generating/CompoGen.cpp
parentTemporarily set all pickups to spawn in the middle of the block from which they fall. (diff)
downloadcuberite-0a08ae14f69f5179c5d8990c41d1d8dbb63be346.tar
cuberite-0a08ae14f69f5179c5d8990c41d1d8dbb63be346.tar.gz
cuberite-0a08ae14f69f5179c5d8990c41d1d8dbb63be346.tar.bz2
cuberite-0a08ae14f69f5179c5d8990c41d1d8dbb63be346.tar.lz
cuberite-0a08ae14f69f5179c5d8990c41d1d8dbb63be346.tar.xz
cuberite-0a08ae14f69f5179c5d8990c41d1d8dbb63be346.tar.zst
cuberite-0a08ae14f69f5179c5d8990c41d1d8dbb63be346.zip
Diffstat (limited to '')
-rw-r--r--source/Generating/CompoGen.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/Generating/CompoGen.cpp b/source/Generating/CompoGen.cpp
index c8f8ac069..432616a36 100644
--- a/source/Generating/CompoGen.cpp
+++ b/source/Generating/CompoGen.cpp
@@ -442,7 +442,7 @@ void cCompoGenNether::ComposeTerrain(cChunkDesc & a_ChunkDesc)
m_Noise2.IntNoise3DInt(BaseX + INTERPOL_X * x, 0, BaseZ + INTERPOL_Z * z) /
256;
} // for x, z - FloorLo[]
- ArrayLinearUpscale2D(FloorLo, 17, 17, INTERPOL_X, INTERPOL_Z);
+ ArrayLinearUpscale2DInPlace(FloorLo, 17, 17, INTERPOL_X, INTERPOL_Z);
// Interpolate segments:
for (int Segment = 0; Segment < MaxHeight; Segment += SEGMENT_HEIGHT)
@@ -455,7 +455,7 @@ void cCompoGenNether::ComposeTerrain(cChunkDesc & a_ChunkDesc)
m_Noise2.IntNoise3DInt(BaseX + INTERPOL_Z * x, Segment + SEGMENT_HEIGHT, BaseZ + INTERPOL_Z * z) /
256;
} // for x, z - FloorLo[]
- ArrayLinearUpscale2D(FloorHi, 17, 17, INTERPOL_X, INTERPOL_Z);
+ ArrayLinearUpscale2DInPlace(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++)