summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPiezo_ <orderofthefourthwall@gmail.com>2019-04-01 06:51:46 +0000
committerPiezo_ <orderofthefourthwall@gmail.com>2019-04-01 06:51:46 +0000
commit206704ffabcdddc61150ed798c88add9965a110d (patch)
treefe4d312f4efdbe66325692b9f996e81363a84edf
parent4aa7f85fa04649438547d64df426f414a09dd082 (diff)
downloadhangglider-206704ffabcdddc61150ed798c88add9965a110d.tar.gz
hangglider-206704ffabcdddc61150ed798c88add9965a110d.tar.bz2
hangglider-206704ffabcdddc61150ed798c88add9965a110d.zip
Fixed physicsctl allowing sprinting when gliding at full falling speed
-rw-r--r--init.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/init.lua b/init.lua
index e9c34d6..97f463a 100644
--- a/init.lua
+++ b/init.lua
@@ -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,