summaryrefslogtreecommitdiffstats
path: root/source/Generating/FinishGen.h
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-10-21 23:15:44 +0200
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-10-21 23:15:44 +0200
commit5ebbf6f4e2503cc9f04f0a833f84bfccbd39ae15 (patch)
treeaa7b0b7a468d50d98f8d57659f9324e3ea4446c1 /source/Generating/FinishGen.h
parentAdded the first part of the PreSimulator finisher, drops floating sand and gravel to ground. (diff)
downloadcuberite-5ebbf6f4e2503cc9f04f0a833f84bfccbd39ae15.tar
cuberite-5ebbf6f4e2503cc9f04f0a833f84bfccbd39ae15.tar.gz
cuberite-5ebbf6f4e2503cc9f04f0a833f84bfccbd39ae15.tar.bz2
cuberite-5ebbf6f4e2503cc9f04f0a833f84bfccbd39ae15.tar.lz
cuberite-5ebbf6f4e2503cc9f04f0a833f84bfccbd39ae15.tar.xz
cuberite-5ebbf6f4e2503cc9f04f0a833f84bfccbd39ae15.tar.zst
cuberite-5ebbf6f4e2503cc9f04f0a833f84bfccbd39ae15.zip
Diffstat (limited to '')
-rw-r--r--source/Generating/FinishGen.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/source/Generating/FinishGen.h b/source/Generating/FinishGen.h
index 2dd4baa4a..ecf26e5fb 100644
--- a/source/Generating/FinishGen.h
+++ b/source/Generating/FinishGen.h
@@ -161,9 +161,20 @@ protected:
// Drops hanging sand and gravel down to the ground, recalculates heightmap
void CollapseSandGravel(
cChunkDef::BlockTypes & a_BlockTypes, // Block types to read and change
- cChunkDef::HeightMap & a_HeightMap // Height map to read and change by the current data
+ cChunkDef::HeightMap & a_HeightMap // Height map to update by the current data
);
+ /** For each fluid block:
+ - if all surroundings are of the same fluid, makes it stationary; otherwise makes it flowing (excl. top)
+ - all fluid on the chunk's edge is made flowing
+ */
+ void StationarizeFluid(
+ cChunkDef::BlockTypes & a_BlockTypes, // Block types to read and change
+ cChunkDef::HeightMap & a_HeightMap, // Height map to read
+ BLOCKTYPE a_Fluid,
+ BLOCKTYPE a_StationaryFluid
+ );
+
// cFinishGen override:
virtual void GenFinish(
int a_ChunkX, int a_ChunkZ,