summaryrefslogtreecommitdiffhomepage
path: root/world.lua
diff options
context:
space:
mode:
Diffstat (limited to 'world.lua')
-rw-r--r--world.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/world.lua b/world.lua
index 2207e00..f0f5e1f 100644
--- a/world.lua
+++ b/world.lua
@@ -358,12 +358,12 @@ function World.beginContact(a, b, coll)
if y == -1 then
print(b:getUserData().name .. " is not in air")
b:getUserData().inAir = false
- b:getUserData().jumpdouble = true
+ b:getUserData().jumpnumber = 2
b:getUserData().salto = false
b:getUserData():createEffect("land")
end
local vx, vy = b:getUserData().body:getLinearVelocity()
- if math.abs(x) == 1 or y == -1 then
+ if math.abs(x) == 1 or (y == -1 and x == 0) then
b:getUserData():playSound(3)
end
end