Skip to content

Commit ba5a9f2

Browse files
authoredFeb 10, 2019
Slippery: Do not apply when swimming (#8198)
1 parent a809f73 commit ba5a9f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/client/localplayer.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -689,7 +689,7 @@ void LocalPlayer::applyControl(float dtime, Environment *env)
689689
incH = incV = movement_acceleration_default * BS * dtime;
690690

691691
float slip_factor = 1.0f;
692-
if (!free_move)
692+
if (!free_move && !in_liquid && !in_liquid_stable)
693693
slip_factor = getSlipFactor(env, speedH);
694694

695695
// Don't sink when swimming in pitch mode

0 commit comments

Comments
 (0)
Please sign in to comment.