forked from Mirrorlandia_minetest/minetest
Slippery: Do not apply when swimming (#8198)
This commit is contained in:
parent
a809f7361e
commit
ba5a9f2b36
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user