From 5f4df3e87dc43bb9cbf19ea1e15d73ee0b5d1755 Mon Sep 17 00:00:00 2001 From: Mattes D Date: Sun, 8 Sep 2019 15:40:12 +0200 Subject: ShapeGen, HeiGen: Changed to use cChunkCoords. --- src/Generating/PrefabStructure.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Generating/PrefabStructure.cpp') diff --git a/src/Generating/PrefabStructure.cpp b/src/Generating/PrefabStructure.cpp index c37398be9..0474a3962 100644 --- a/src/Generating/PrefabStructure.cpp +++ b/src/Generating/PrefabStructure.cpp @@ -55,7 +55,7 @@ void cPrefabStructure::PlacePieceOnGround(cPlacedPiece & a_Piece) int BlockY; cChunkDef::AbsoluteToRelative(BlockX, BlockY, BlockZ, ChunkX, ChunkZ); cChunkDef::HeightMap HeightMap; - m_HeightGen->GenHeightMap(ChunkX, ChunkZ, HeightMap); + m_HeightGen->GenHeightMap({ChunkX, ChunkZ}, HeightMap); int TerrainHeight = cChunkDef::GetHeight(HeightMap, BlockX, BlockZ); a_Piece.MoveToGroundBy(TerrainHeight - FirstConnector.m_Pos.y + 1); } -- cgit v1.2.3