mirror of
https://github.com/minetest/minetest.git
synced 2024-11-27 01:53:45 +01:00
Prevent air acceleration with 0 jump speed (#13036)
This commit is contained in:
parent
1798ad0ec4
commit
c18c082059
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user