diff options
author | lapayo94@gmail.com <lapayo94@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2011-12-29 01:44:19 +0100 |
---|---|---|
committer | lapayo94@gmail.com <lapayo94@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2011-12-29 01:44:19 +0100 |
commit | f5466a4cb368a1554362deeb5b0f966cf5613e80 (patch) | |
tree | 6653c18a9d075ceaab4aa3a301054bcabcd23363 /source/cFluidSimulator.cpp | |
parent | - little performance improvement on the sand simulator (diff) | |
download | cuberite-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 '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)
{
|