summaryrefslogtreecommitdiffstats
path: root/src/Simulator/FloodyFluidSimulator.cpp
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-05-02 22:07:30 +0200
committermadmaxoft <github@xoft.cz>2014-05-02 22:07:30 +0200
commit58224863c0e3c61f28e2f345e53ee632043de9c4 (patch)
tree70805db1e9b6041351ee2d764f8ea34b3b31c7be /src/Simulator/FloodyFluidSimulator.cpp
parentFixed a buffer overflow in cChunk:SetLight(). (diff)
downloadcuberite-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 'src/Simulator/FloodyFluidSimulator.cpp')
-rw-r--r--src/Simulator/FloodyFluidSimulator.cpp4
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);