summaryrefslogtreecommitdiffstats
path: root/src/Simulator/FloodyFluidSimulator.h
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.h
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 '')
-rw-r--r--src/Simulator/FloodyFluidSimulator.h13
1 files changed, 5 insertions, 8 deletions
diff --git a/src/Simulator/FloodyFluidSimulator.h b/src/Simulator/FloodyFluidSimulator.h
index 632de3bb2..8e1be5e6b 100644
--- a/src/Simulator/FloodyFluidSimulator.h
+++ b/src/Simulator/FloodyFluidSimulator.h
@@ -48,16 +48,13 @@ protected:
bool CheckNeighborsForSource(cChunk * a_Chunk, int a_RelX, int a_RelY, int a_RelZ);
/** Checks if the specified block should harden (Water/Lava interaction) and if so, converts it to a suitable block.
- *
- * Returns whether the block was changed or not.
- */
+ Returns whether the block was changed or not. */
bool HardenBlock(cChunk * a_Chunk, int a_RelX, int a_RelY, int a_RelZ, BLOCKTYPE a_BlockType, NIBBLETYPE a_Meta);
- /** Spread water to neighbors.
- *
- * May be overridden to provide more sophisticated algorithms.
- */
- virtual void Spread(cChunk * a_Chunk, int a_RelX, int a_RelY, int a_RelZ, NIBBLETYPE a_NewMeta);
+ /** Spread fluid to XZ neighbors.
+ The coords are of the block currently being processed; a_NewMeta is the new meta for the new fluid block.
+ Descendants may overridde to provide more sophisticated algorithms. */
+ virtual void SpreadXZ(cChunk * a_Chunk, int a_RelX, int a_RelY, int a_RelZ, NIBBLETYPE a_NewMeta);
} ;