diff options
author | bionext03 <bionext810@mail.ru> | 2018-07-27 11:01:53 +0200 |
---|---|---|
committer | peterbell10 <peterbell10@live.co.uk> | 2018-07-27 11:01:53 +0200 |
commit | 90d552a702a435f644c29f75fc2a85c0d71ee510 (patch) | |
tree | 93767de368db3880b8382e9818a41555d6f4e77b /src/Simulator/FluidSimulator.h | |
parent | cWorld: Manually bind deprecated broadcast functions (#4265) (diff) | |
download | cuberite-90d552a702a435f644c29f75fc2a85c0d71ee510.tar cuberite-90d552a702a435f644c29f75fc2a85c0d71ee510.tar.gz cuberite-90d552a702a435f644c29f75fc2a85c0d71ee510.tar.bz2 cuberite-90d552a702a435f644c29f75fc2a85c0d71ee510.tar.lz cuberite-90d552a702a435f644c29f75fc2a85c0d71ee510.tar.xz cuberite-90d552a702a435f644c29f75fc2a85c0d71ee510.tar.zst cuberite-90d552a702a435f644c29f75fc2a85c0d71ee510.zip |
Diffstat (limited to 'src/Simulator/FluidSimulator.h')
-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 -} ; +}; |