Merge pull request #2360 from bibo38/waterfix
Now Water sources will also be created on top of existing water sources.
This commit is contained in:
commit
29d1f37258
@ -113,7 +113,10 @@ void cFloodyFluidSimulator::SimulateBlock(cChunk * a_Chunk, int a_RelX, int a_Re
|
|||||||
if (
|
if (
|
||||||
(m_NumNeighborsForSource > 0) && // Source creation is on
|
(m_NumNeighborsForSource > 0) && // Source creation is on
|
||||||
(MyMeta == m_Falloff) && // Only exactly one block away from a source (fast bail-out)
|
(MyMeta == m_Falloff) && // Only exactly one block away from a source (fast bail-out)
|
||||||
!IsPassableForFluid(Below) && // Only exactly 1 block deep
|
(
|
||||||
|
!IsPassableForFluid(Below) || // Only exactly 1 block deep
|
||||||
|
(Below == m_StationaryFluidBlock) // Or a source block underneath
|
||||||
|
) &&
|
||||||
CheckNeighborsForSource(a_Chunk, a_RelX, a_RelY, a_RelZ) // Did we create a source?
|
CheckNeighborsForSource(a_Chunk, a_RelX, a_RelY, a_RelZ) // Did we create a source?
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user