Slippery: Do not apply when swimming (#8198)

This commit is contained in:
SmallJoker 2019-02-10 17:04:04 +01:00 committed by GitHub
parent a809f7361e
commit ba5a9f2b36
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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