Skip to content
Permalink
Browse files

Slippery: Do not apply when swimming (#8198)

  • Loading branch information...
SmallJoker committed Feb 10, 2019
1 parent a809f73 commit ba5a9f2b361a2fa01d1a3396999a5833983c0f4a
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/client/localplayer.cpp
@@ -689,7 +689,7 @@ void LocalPlayer::applyControl(float dtime, Environment *env)
incH = incV = movement_acceleration_default * BS * dtime;

float slip_factor = 1.0f;
if (!free_move)
if (!free_move && !in_liquid && !in_liquid_stable)
slip_factor = getSlipFactor(env, speedH);

// Don't sink when swimming in pitch mode

0 comments on commit ba5a9f2

Please sign in to comment.
You can’t perform that action at this time.