Fixed physicsctl allowing sprinting when gliding at full falling speed

This commit is contained in:
Piezo_ 2019-04-01 06:51:46 +00:00
parent 4aa7f85fa0
commit 206704ffab

View File

@ -136,7 +136,7 @@ minetestd.physicsctl.register_physics_effect("hangglider",
if vel_y < 0 and vel_y > -3 then if vel_y < 0 and vel_y > -3 then
phys.speed = (math.abs(vel_y/2) + 0.75) phys.speed = (math.abs(vel_y/2) + 0.75)
elseif vel_y <= -3 then --Cap our gliding movement speed. elseif vel_y <= -3 then --Cap our gliding movement speed.
phys.speed = phys.speed*2.25 phys.speed = 2.25
end end
phys.jump = 0 phys.jump = 0
end, end,