diff options
author | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2013-03-17 18:55:03 +0100 |
---|---|---|
committer | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2013-03-17 18:55:03 +0100 |
commit | 1ed3b3aed2e538af2c3bffa41f54a30ac6535f12 (patch) | |
tree | 173949d9abcbd08d9c3535704419a372e52c7c8a /source/Generating/Ravines.cpp | |
parent | ProbabDistrib: fixed definition string parsing with nonzero start (diff) | |
download | cuberite-1ed3b3aed2e538af2c3bffa41f54a30ac6535f12.tar cuberite-1ed3b3aed2e538af2c3bffa41f54a30ac6535f12.tar.gz cuberite-1ed3b3aed2e538af2c3bffa41f54a30ac6535f12.tar.bz2 cuberite-1ed3b3aed2e538af2c3bffa41f54a30ac6535f12.tar.lz cuberite-1ed3b3aed2e538af2c3bffa41f54a30ac6535f12.tar.xz cuberite-1ed3b3aed2e538af2c3bffa41f54a30ac6535f12.tar.zst cuberite-1ed3b3aed2e538af2c3bffa41f54a30ac6535f12.zip |
Diffstat (limited to 'source/Generating/Ravines.cpp')
-rw-r--r-- | source/Generating/Ravines.cpp | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/source/Generating/Ravines.cpp b/source/Generating/Ravines.cpp index af53259bc..94d91c0bb 100644 --- a/source/Generating/Ravines.cpp +++ b/source/Generating/Ravines.cpp @@ -117,20 +117,15 @@ void cStructGenRavines::ClearCache(void) -void cStructGenRavines::GenStructures(
- int a_ChunkX, int a_ChunkZ,
- cChunkDef::BlockTypes & a_BlockTypes, // Block types to read and change
- cChunkDef::BlockNibbles & a_BlockMeta, // Block meta to read and change
- cChunkDef::HeightMap & a_HeightMap, // Height map to read and change by the current data
- cEntityList & a_Entities, // Entities may be added or deleted
- cBlockEntityList & a_BlockEntities // Block entities may be added or deleted
-)
+void cStructGenRavines::GenStructures(cChunkDesc & a_ChunkDesc)
{
+ int ChunkX = a_ChunkDesc.GetChunkX();
+ int ChunkZ = a_ChunkDesc.GetChunkZ();
cRavines Ravines;
- GetRavinesForChunk(a_ChunkX, a_ChunkZ, Ravines);
- for (cRavines::const_iterator itr = Ravines.begin(); itr != Ravines.end(); ++itr)
+ GetRavinesForChunk(ChunkX, ChunkZ, Ravines);
+ for (cRavines::const_iterator itr = Ravines.begin(), end = Ravines.end(); itr != end; ++itr)
{
- (*itr)->ProcessChunk(a_ChunkX, a_ChunkZ, a_BlockTypes, a_HeightMap);
+ (*itr)->ProcessChunk(ChunkX, ChunkZ, a_ChunkDesc.GetBlockTypes(), a_ChunkDesc.GetHeightMap());
} // for itr - Ravines[]
}
|