From 5ebbf6f4e2503cc9f04f0a833f84bfccbd39ae15 Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Sun, 21 Oct 2012 21:15:44 +0000 Subject: cFinishGenPreSimulator sets correct fluid type (stationary in the middle, flowing on chunk borders / holes next to water. git-svn-id: http://mc-server.googlecode.com/svn/trunk@999 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/Generating/FinishGen.h | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'source/Generating/FinishGen.h') 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, -- cgit v1.2.3