diff options
Diffstat (limited to '')
-rw-r--r-- | src/Simulator/FluidSimulator.h | 8 |
1 files changed, 4 insertions, 4 deletions
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 -} ; +}; |