diff options
author | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2013-05-14 23:11:40 +0200 |
---|---|---|
committer | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2013-05-14 23:11:40 +0200 |
commit | 464dcc3764f42fd7620bc261b844bf79cfd07768 (patch) | |
tree | 1da1e45d9491f6ce3ed71de63c2347c821bef68e /source/Generating/DistortedHeightmap.cpp | |
parent | Added more logging to pickup collection code. (diff) | |
download | cuberite-464dcc3764f42fd7620bc261b844bf79cfd07768.tar cuberite-464dcc3764f42fd7620bc261b844bf79cfd07768.tar.gz cuberite-464dcc3764f42fd7620bc261b844bf79cfd07768.tar.bz2 cuberite-464dcc3764f42fd7620bc261b844bf79cfd07768.tar.lz cuberite-464dcc3764f42fd7620bc261b844bf79cfd07768.tar.xz cuberite-464dcc3764f42fd7620bc261b844bf79cfd07768.tar.zst cuberite-464dcc3764f42fd7620bc261b844bf79cfd07768.zip |
Diffstat (limited to 'source/Generating/DistortedHeightmap.cpp')
-rw-r--r-- | source/Generating/DistortedHeightmap.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/Generating/DistortedHeightmap.cpp b/source/Generating/DistortedHeightmap.cpp index b90a30e45..9d60c0a92 100644 --- a/source/Generating/DistortedHeightmap.cpp +++ b/source/Generating/DistortedHeightmap.cpp @@ -158,7 +158,7 @@ void cDistortedHeightmap::GenerateHeightArray(void) CurFloor[idx + x * INTERPOL_X] = (NOISE_DATATYPE)GetHeightmapAt(DistX, DistZ) + (NOISE_DATATYPE)0.5;
} // for x
} // for z
- ArrayLinearUpscale2DInPlace(CurFloor, 17, 17, INTERPOL_X, INTERPOL_Z);
+ LinearUpscale2DArrayInPlace(CurFloor, 17, 17, INTERPOL_X, INTERPOL_Z);
} // for y
// Finish the 3D linear interpolation by interpolating between each XZ-floors on the Y axis
@@ -381,8 +381,8 @@ void cDistortedHeightmap::UpdateDistortAmps(void) GetDistortAmpsAt(Biomes, x, z, m_DistortAmpX[x + 17 * z], m_DistortAmpZ[x + 17 * z]);
}
}
- ArrayLinearUpscale2DInPlace(m_DistortAmpX, 17, 17, STEPX, STEPZ);
- ArrayLinearUpscale2DInPlace(m_DistortAmpZ, 17, 17, STEPX, STEPZ);
+ LinearUpscale2DArrayInPlace(m_DistortAmpX, 17, 17, STEPX, STEPZ);
+ LinearUpscale2DArrayInPlace(m_DistortAmpZ, 17, 17, STEPX, STEPZ);
}
|