diff options
author | madmaxoft <github@xoft.cz> | 2014-05-02 22:07:30 +0200 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2014-05-02 22:07:30 +0200 |
commit | 58224863c0e3c61f28e2f345e53ee632043de9c4 (patch) | |
tree | 70805db1e9b6041351ee2d764f8ea34b3b31c7be /src/Simulator/FloodyFluidSimulator.cpp | |
parent | Fixed a buffer overflow in cChunk:SetLight(). (diff) | |
download | cuberite-58224863c0e3c61f28e2f345e53ee632043de9c4.tar cuberite-58224863c0e3c61f28e2f345e53ee632043de9c4.tar.gz cuberite-58224863c0e3c61f28e2f345e53ee632043de9c4.tar.bz2 cuberite-58224863c0e3c61f28e2f345e53ee632043de9c4.tar.lz cuberite-58224863c0e3c61f28e2f345e53ee632043de9c4.tar.xz cuberite-58224863c0e3c61f28e2f345e53ee632043de9c4.tar.zst cuberite-58224863c0e3c61f28e2f345e53ee632043de9c4.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Simulator/FloodyFluidSimulator.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Simulator/FloodyFluidSimulator.cpp b/src/Simulator/FloodyFluidSimulator.cpp index 03e94e791..e95af3a1c 100644 --- a/src/Simulator/FloodyFluidSimulator.cpp +++ b/src/Simulator/FloodyFluidSimulator.cpp @@ -119,7 +119,7 @@ void cFloodyFluidSimulator::SimulateBlock(cChunk * a_Chunk, int a_RelX, int a_Re if (SpreadFurther && (NewMeta < 8)) { // Spread to the neighbors: - Spread(a_Chunk, a_RelX, a_RelY, a_RelZ, NewMeta); + SpreadXZ(a_Chunk, a_RelX, a_RelY, a_RelZ, NewMeta); } // Mark as processed: @@ -130,7 +130,7 @@ void cFloodyFluidSimulator::SimulateBlock(cChunk * a_Chunk, int a_RelX, int a_Re -void cFloodyFluidSimulator::Spread(cChunk * a_Chunk, int a_RelX, int a_RelY, int a_RelZ, NIBBLETYPE a_NewMeta) +void cFloodyFluidSimulator::SpreadXZ(cChunk * a_Chunk, int a_RelX, int a_RelY, int a_RelZ, NIBBLETYPE a_NewMeta) { SpreadToNeighbor(a_Chunk, a_RelX - 1, a_RelY, a_RelZ, a_NewMeta); SpreadToNeighbor(a_Chunk, a_RelX + 1, a_RelY, a_RelZ, a_NewMeta); |