diff options
author | worktycho <work.tycho@gmail.com> | 2013-12-09 15:15:30 +0100 |
---|---|---|
committer | worktycho <work.tycho@gmail.com> | 2013-12-09 15:15:30 +0100 |
commit | 187449824c855d00802bebe13aab72aa6d76bd02 (patch) | |
tree | 6c7427e6d03184266983b0e7cd78fc08d5c8f5d5 /src/Simulator | |
parent | Fixed warning unchecked enum value at Chunk.cpp line 841 (diff) | |
download | cuberite-187449824c855d00802bebe13aab72aa6d76bd02.tar cuberite-187449824c855d00802bebe13aab72aa6d76bd02.tar.gz cuberite-187449824c855d00802bebe13aab72aa6d76bd02.tar.bz2 cuberite-187449824c855d00802bebe13aab72aa6d76bd02.tar.lz cuberite-187449824c855d00802bebe13aab72aa6d76bd02.tar.xz cuberite-187449824c855d00802bebe13aab72aa6d76bd02.tar.zst cuberite-187449824c855d00802bebe13aab72aa6d76bd02.zip |
Diffstat (limited to 'src/Simulator')
-rw-r--r-- | src/Simulator/FluidSimulator.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/Simulator/FluidSimulator.cpp b/src/Simulator/FluidSimulator.cpp index dac666484..72b2eb628 100644 --- a/src/Simulator/FluidSimulator.cpp +++ b/src/Simulator/FluidSimulator.cpp @@ -1,4 +1,3 @@ - #include "Globals.h" #include "FluidSimulator.h" @@ -138,7 +137,7 @@ Direction cFluidSimulator::GetFlowingDirection(int a_X, int a_Y, int a_Z, bool a */ NIBBLETYPE LowestPoint = m_World.GetBlockMeta(a_X, a_Y, a_Z); //Current Block Meta so only lower points will be counted - int X = 0, Y = 0, Z = 0; //Lowest Pos will be stored here + int X = 0, Z = 0; //Lowest Pos will be stored here if (IsAllowedBlock(m_World.GetBlock(a_X, a_Y + 1, a_Z)) && a_Over) //check for upper block to flow because this also affects the flowing direction { @@ -167,14 +166,14 @@ Direction cFluidSimulator::GetFlowingDirection(int a_X, int a_Y, int a_Z, bool a { LowestPoint = Meta; X = Pos->x; - Y = Pos->y; + Pos->y; //Remove if no side effects Z = Pos->z; } }else if(BlockID == E_BLOCK_AIR) { LowestPoint = 9; //This always dominates X = Pos->x; - Y = Pos->y; + Pos->y; //Remove if no side effects Z = Pos->z; } |