summaryrefslogtreecommitdiffhomepage
path: root/world.lua
diff options
context:
space:
mode:
authorAki <nthirtyone@gmail.com>2016-08-04 19:41:20 +0200
committerAki <nthirtyone@gmail.com>2016-08-04 19:41:20 +0200
commit17f4ae2f06e041edb3ecb30035c713a77c64fb46 (patch)
treea247d3cb43a6e7988958a8591c11823c64b61bcf /world.lua
parent6997606584369107c890d7ff7ab154a8e4815972 (diff)
downloadroflnauts-17f4ae2f06e041edb3ecb30035c713a77c64fb46.zip
roflnauts-17f4ae2f06e041edb3ecb30035c713a77c64fb46.tar.gz
roflnauts-17f4ae2f06e041edb3ecb30035c713a77c64fb46.tar.bz2
Fixed no-sound bug on landing
Diffstat (limited to 'world.lua')
-rw-r--r--world.lua2
1 files changed, 1 insertions, 1 deletions
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