]> git.lizzy.rs Git - hangglider.git/commitdiff
Fixed physicsctl allowing sprinting when gliding at full falling speed
authorPiezo_ <orderofthefourthwall@gmail.com>
Mon, 1 Apr 2019 06:51:46 +0000 (06:51 +0000)
committerPiezo_ <orderofthefourthwall@gmail.com>
Mon, 1 Apr 2019 06:51:46 +0000 (06:51 +0000)
init.lua

index e9c34d6f8f3664540828df02e482b13ec3c28328..97f463afdd5f3208bf2672e732b579821bf5a7d8 100644 (file)
--- 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,