summaryrefslogtreecommitdiffstats
path: root/source/cFluidSimulator.cpp
diff options
context:
space:
mode:
authorlapayo94@gmail.com <lapayo94@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2011-12-29 01:44:19 +0100
committerlapayo94@gmail.com <lapayo94@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2011-12-29 01:44:19 +0100
commitf5466a4cb368a1554362deeb5b0f966cf5613e80 (patch)
tree6653c18a9d075ceaab4aa3a301054bcabcd23363 /source/cFluidSimulator.cpp
parent- little performance improvement on the sand simulator (diff)
downloadcuberite-f5466a4cb368a1554362deeb5b0f966cf5613e80.tar
cuberite-f5466a4cb368a1554362deeb5b0f966cf5613e80.tar.gz
cuberite-f5466a4cb368a1554362deeb5b0f966cf5613e80.tar.bz2
cuberite-f5466a4cb368a1554362deeb5b0f966cf5613e80.tar.lz
cuberite-f5466a4cb368a1554362deeb5b0f966cf5613e80.tar.xz
cuberite-f5466a4cb368a1554362deeb5b0f966cf5613e80.tar.zst
cuberite-f5466a4cb368a1554362deeb5b0f966cf5613e80.zip
Diffstat (limited to '')
-rw-r--r--source/cFluidSimulator.cpp8
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)
{