mirror of
https://github.com/minetest/minetest.git
synced 2024-11-30 11:33:44 +01:00
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;
|
incH = incV = movement_acceleration_default * BS * dtime;
|
||||||
|
|
||||||
float slip_factor = 1.0f;
|
float slip_factor = 1.0f;
|
||||||
if (!free_move)
|
if (!free_move && !in_liquid && !in_liquid_stable)
|
||||||
slip_factor = getSlipFactor(env, speedH);
|
slip_factor = getSlipFactor(env, speedH);
|
||||||
|
|
||||||
// Don't sink when swimming in pitch mode
|
// Don't sink when swimming in pitch mode
|
||||||
|
Loading…
Reference in New Issue
Block a user