summaryrefslogtreecommitdiffstats
path: root/source/Pickup.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/Pickup.cpp')
-rw-r--r--source/Pickup.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/source/Pickup.cpp b/source/Pickup.cpp
index 8a32a328b..ea1f603a4 100644
--- a/source/Pickup.cpp
+++ b/source/Pickup.cpp
@@ -9,7 +9,7 @@
#include "ClientHandle.h"
#include "Inventory.h"
#include "World.h"
-#include "WaterSimulator.h"
+#include "Simulator/FluidSimulator.h"
#include "Server.h"
#include "Player.h"
#include "PluginManager.h"
@@ -157,11 +157,9 @@ void cPickup::HandlePhysics(float a_Dt)
if( fabs(m_Speed.z) < 0.05 ) m_Speed.z = 0;
}
-
- //get flowing direction
+ // get flowing direction
Direction WaterDir = World->GetWaterSimulator()->GetFlowingDirection((int) m_Pos.x - 1, (int) m_Pos.y, (int) m_Pos.z - 1);
-
m_WaterSpeed *= 0.9f; //Keep old speed but lower it
switch(WaterDir)