From f1d564e3247048dcc7ad2c4737e9f14b33f54c25 Mon Sep 17 00:00:00 2001 From: OttoLidenbrock Date: Tue, 5 May 2015 17:34:55 +1000 Subject: [PATCH] Let player sink if they are not moving --- src/environment.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/environment.cpp b/src/environment.cpp index ee37678cb..dc0f5e879 100644 --- a/src/environment.cpp +++ b/src/environment.cpp @@ -2114,7 +2114,8 @@ void ClientEnvironment::step(float dtime) f32 dtime_downcount = dtime; - free_move |= lplayer->in_liquid || lplayer->in_liquid_stable; + free_move |= (lplayer->in_liquid || lplayer->in_liquid_stable) + && (fabs(lplayer->getSpeed().X) > .001 && fabs(lplayer->getSpeed().Y > 0.001)); /* Stuff that has a maximum time increment