mirror of
https://github.com/minetest/minetest.git
synced 2025-04-02 08:22:56 +02:00
Prevent air acceleration with 0 jump speed (#13036)
This commit is contained in:
committed by
GitHub
parent
1798ad0ec4
commit
c18c082059
@ -485,6 +485,9 @@ void LocalPlayer::move(f32 dtime, Environment *env, f32 pos_max_d,
|
|||||||
m_can_jump = false;
|
m_can_jump = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Prevent sliding on the ground when jump speed is 0
|
||||||
|
m_can_jump = m_can_jump && jumpspeed != 0.0f;
|
||||||
|
|
||||||
// Autojump
|
// Autojump
|
||||||
handleAutojump(dtime, env, result, initial_position, initial_speed, pos_max_d);
|
handleAutojump(dtime, env, result, initial_position, initial_speed, pos_max_d);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user