Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Slippery: Do not apply when swimming (#8198)
  • Loading branch information
SmallJoker committed Feb 10, 2019
1 parent a809f73 commit ba5a9f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/client/localplayer.cpp
Expand Up @@ -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
Expand Down

0 comments on commit ba5a9f2

Please sign in to comment.