From 17f4ae2f06e041edb3ecb30035c713a77c64fb46 Mon Sep 17 00:00:00 2001 From: Aki Date: Thu, 4 Aug 2016 19:41:20 +0200 Subject: Fixed no-sound bug on landing --- world.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'world.lua') diff --git a/world.lua b/world.lua index 01fed0b..d5e67fd 100644 --- a/world.lua +++ b/world.lua @@ -378,7 +378,7 @@ function World.beginContact(a, b, coll) b:getUserData():createEffect("land") end local vx, vy = b:getUserData().body:getLinearVelocity() - if math.abs(x) == 1 or (y == -1 and x == 0) then + if math.abs(x) == 1 or (y < -0.6 and x == 0) then b:getUserData():playSound(3) end end -- cgit v1.1