mirror of https://github.com/minetest/minetest.git
Fix placement of brackets
This commit is contained in:
parent
d7a3b42430
commit
872e61b2ab
|
@ -363,11 +363,10 @@ void LocalPlayer::move(f32 dtime, Environment *env, f32 pos_max_d,
|
|||
m_can_jump = false;
|
||||
// Jump key pressed while jumping off from a bouncy block
|
||||
if (m_can_jump && control.jump && itemgroup_get(f.groups, "bouncy") &&
|
||||
m_speed.Y >= -0.5 * BS)
|
||||
{
|
||||
m_speed.Y >= -0.5 * BS) {
|
||||
|
||||
float jumpspeed = movement_speed_jump * physics_override_jump;
|
||||
if (m_speed.Y > 1)
|
||||
{
|
||||
if (m_speed.Y > 1) {
|
||||
// Reduce boost when speed already is high
|
||||
m_speed.Y += jumpspeed / (1 + (m_speed.Y / 16 ));
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue