diff options
author | Aki <nthirtyone@gmail.com> | 2016-08-04 19:41:20 +0200 |
---|---|---|
committer | Aki <nthirtyone@gmail.com> | 2016-08-04 19:41:20 +0200 |
commit | 17f4ae2f06e041edb3ecb30035c713a77c64fb46 (patch) | |
tree | a247d3cb43a6e7988958a8591c11823c64b61bcf | |
parent | 6997606584369107c890d7ff7ab154a8e4815972 (diff) | |
download | roflnauts-17f4ae2f06e041edb3ecb30035c713a77c64fb46.zip roflnauts-17f4ae2f06e041edb3ecb30035c713a77c64fb46.tar.gz roflnauts-17f4ae2f06e041edb3ecb30035c713a77c64fb46.tar.bz2 |
Fixed no-sound bug on landing
-rw-r--r-- | world.lua | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |