diff options
author | Lukas Pioch <lukas@zgow.de> | 2015-12-17 11:37:20 +0100 |
---|---|---|
committer | Lukas Pioch <lukas@zgow.de> | 2015-12-17 11:37:20 +0100 |
commit | 1395ff3ca4baf554f8b47a73ebd7bbf7635f59cb (patch) | |
tree | d589a1e5fb4813e100fd377bae9378c37a619370 /src/Simulator/FloodyFluidSimulator.cpp | |
parent | Merge pull request #2753 from cuberite/pathFix (diff) | |
parent | Moved variables into scope, removed unused variables and fixed variables (diff) | |
download | cuberite-1395ff3ca4baf554f8b47a73ebd7bbf7635f59cb.tar cuberite-1395ff3ca4baf554f8b47a73ebd7bbf7635f59cb.tar.gz cuberite-1395ff3ca4baf554f8b47a73ebd7bbf7635f59cb.tar.bz2 cuberite-1395ff3ca4baf554f8b47a73ebd7bbf7635f59cb.tar.lz cuberite-1395ff3ca4baf554f8b47a73ebd7bbf7635f59cb.tar.xz cuberite-1395ff3ca4baf554f8b47a73ebd7bbf7635f59cb.tar.zst cuberite-1395ff3ca4baf554f8b47a73ebd7bbf7635f59cb.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Simulator/FloodyFluidSimulator.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Simulator/FloodyFluidSimulator.cpp b/src/Simulator/FloodyFluidSimulator.cpp index 1e56f9528..45a34a8d9 100644 --- a/src/Simulator/FloodyFluidSimulator.cpp +++ b/src/Simulator/FloodyFluidSimulator.cpp @@ -88,9 +88,9 @@ void cFloodyFluidSimulator::SimulateBlock(cChunk * a_Chunk, int a_RelX, int a_Re // If this is a source block or was falling, the new meta is just the falloff // Otherwise it is the current meta plus falloff (may be larger than max height, will be checked later) NIBBLETYPE NewMeta = ((MyMeta == 0) || ((MyMeta & 0x08) != 0)) ? m_Falloff : (MyMeta + m_Falloff); - bool SpreadFurther = true; if (a_RelY > 0) { + bool SpreadFurther = true; BLOCKTYPE Below = a_Chunk->GetBlock(a_RelX, a_RelY - 1, a_RelZ); if (IsPassableForFluid(Below) || IsBlockLava(Below) || IsBlockWater(Below)) { |