From 90d552a702a435f644c29f75fc2a85c0d71ee510 Mon Sep 17 00:00:00 2001 From: bionext03 Date: Fri, 27 Jul 2018 17:01:53 +0800 Subject: Add new flow direction calculating algorithm (#4160) --- src/Simulator/FluidSimulator.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/Simulator/FluidSimulator.h') diff --git a/src/Simulator/FluidSimulator.h b/src/Simulator/FluidSimulator.h index 86bcfb116..7e79c2751 100644 --- a/src/Simulator/FluidSimulator.h +++ b/src/Simulator/FluidSimulator.h @@ -28,7 +28,7 @@ class cFluidSimulatorData { public: virtual ~cFluidSimulatorData() {} -} ; +}; @@ -45,8 +45,8 @@ public: // cSimulator overrides: virtual bool IsAllowedBlock(BLOCKTYPE a_BlockType) override; - /** Gets the flowing direction. If a_Over is true also the block over the current block affects the direction (standard) */ - virtual Direction GetFlowingDirection(int a_X, int a_Y, int a_Z, bool a_Over = true); + /** Returns a unit vector in the direction the fluid is flowing or a zero-vector if not flowing. */ + virtual Vector3f GetFlowingDirection(int a_X, int a_Y, int a_Z); /** Creates a ChunkData object for the simulator to use. The simulator returns the correct object type. */ virtual cFluidSimulatorData * CreateChunkData(void) { return nullptr; } @@ -66,7 +66,7 @@ public: protected: BLOCKTYPE m_FluidBlock; // The fluid block type that needs simulating BLOCKTYPE m_StationaryFluidBlock; // The fluid block type that indicates no simulation is needed -} ; +}; -- cgit v1.2.3