1
0
mirror of https://github.com/mt-mods/hangglider.git synced 2024-12-05 00:20:30 +01:00

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
phys.speed = (math.abs(vel_y/2) + 0.75)
elseif vel_y <= -3 then --Cap our gliding movement speed.
phys.speed = phys.speed*2.25
phys.speed = 2.25
end
phys.jump = 0
end,