diff options
Diffstat (limited to 'source/cFluidSimulator.cpp')
-rw-r--r-- | source/cFluidSimulator.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/source/cFluidSimulator.cpp b/source/cFluidSimulator.cpp index 47cf0be19..cd2d1fae2 100644 --- a/source/cFluidSimulator.cpp +++ b/source/cFluidSimulator.cpp @@ -218,6 +218,14 @@ void cFluidSimulator::Simulate( float a_Dt ) }
}
+
+bool cFluidSimulator::IsPassableForFluid(char a_BlockID)
+{
+ return a_BlockID == E_BLOCK_AIR
+ || a_BlockID == E_BLOCK_FIRE
+ || IsAllowedBlock(a_BlockID);
+}
+
//TODO Not working very well yet :s
Direction cFluidSimulator::GetFlowingDirection(int a_X, int a_Y, int a_Z, bool a_Over)
{
|