diff options
author | Mattes D <github@xoft.cz> | 2019-09-08 15:40:12 +0200 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2019-09-08 20:21:49 +0200 |
commit | 5f4df3e87dc43bb9cbf19ea1e15d73ee0b5d1755 (patch) | |
tree | 7b633e2b29ae816dcc6a56c4d1c083518db7da04 /src/Generating/CompositedHeiGen.h | |
parent | BiomeGen: Changed to use cChunkCoords params. (diff) | |
download | cuberite-5f4df3e87dc43bb9cbf19ea1e15d73ee0b5d1755.tar cuberite-5f4df3e87dc43bb9cbf19ea1e15d73ee0b5d1755.tar.gz cuberite-5f4df3e87dc43bb9cbf19ea1e15d73ee0b5d1755.tar.bz2 cuberite-5f4df3e87dc43bb9cbf19ea1e15d73ee0b5d1755.tar.lz cuberite-5f4df3e87dc43bb9cbf19ea1e15d73ee0b5d1755.tar.xz cuberite-5f4df3e87dc43bb9cbf19ea1e15d73ee0b5d1755.tar.zst cuberite-5f4df3e87dc43bb9cbf19ea1e15d73ee0b5d1755.zip |
Diffstat (limited to 'src/Generating/CompositedHeiGen.h')
-rw-r--r-- | src/Generating/CompositedHeiGen.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Generating/CompositedHeiGen.h b/src/Generating/CompositedHeiGen.h index d7be3c8ac..4c1d4b783 100644 --- a/src/Generating/CompositedHeiGen.h +++ b/src/Generating/CompositedHeiGen.h @@ -30,12 +30,12 @@ public: // cTerrainHeightGen overrides: - virtual void GenHeightMap(int a_ChunkX, int a_ChunkZ, cChunkDef::HeightMap & a_HeightMap) override + virtual void GenHeightMap(cChunkCoords a_ChunkCoords, cChunkDef::HeightMap & a_HeightMap) override { cChunkDesc::Shape shape; - m_ShapeGen->GenShape(a_ChunkX, a_ChunkZ, shape); - cChunkDesc desc({a_ChunkX, a_ChunkZ}); - m_BiomeGen->GenBiomes({a_ChunkX, a_ChunkZ}, desc.GetBiomeMap()); // Need to initialize biomes for the composition gen + m_ShapeGen->GenShape(a_ChunkCoords, shape); + cChunkDesc desc(a_ChunkCoords); + m_BiomeGen->GenBiomes(a_ChunkCoords, desc.GetBiomeMap()); // Need to initialize biomes for the composition gen desc.SetHeightFromShape(shape); m_CompositionGen->ComposeTerrain(desc, shape); memcpy(a_HeightMap, desc.GetHeightMap(), sizeof(a_HeightMap)); |