diff options
Diffstat (limited to 'src/client/localplayer.cpp')
-rw-r--r-- | src/client/localplayer.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/client/localplayer.cpp b/src/client/localplayer.cpp index 48d2d86ee..776ad055a 100644 --- a/src/client/localplayer.cpp +++ b/src/client/localplayer.cpp @@ -485,6 +485,9 @@ void LocalPlayer::move(f32 dtime, Environment *env, f32 pos_max_d, m_can_jump = false; } + // Prevent sliding on the ground when jump speed is 0 + m_can_jump = m_can_jump && jumpspeed != 0.0f; + // Autojump handleAutojump(dtime, env, result, initial_position, initial_speed, pos_max_d); } |