summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAki <nthirtyone@gmail.com>2016-05-17 20:50:19 +0200
committerAki <nthirtyone@gmail.com>2016-05-17 20:50:19 +0200
commite255bb314ca0a1d23cfde2c5ca20266c6e1a25af (patch)
treeabd12eb7380fb964951b7c7e126701d4ea854977
parent1bc9a66be76ddd8003bd021a354cec34083f6b3e (diff)
downloadroflnauts-e255bb314ca0a1d23cfde2c5ca20266c6e1a25af.zip
roflnauts-e255bb314ca0a1d23cfde2c5ca20266c6e1a25af.tar.gz
roflnauts-e255bb314ca0a1d23cfde2c5ca20266c6e1a25af.tar.bz2
beginContact world ref
-rw-r--r--world.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/world.lua b/world.lua
index 11fffac..80e7210 100644
--- a/world.lua
+++ b/world.lua
@@ -177,7 +177,7 @@ function World.beginContact(a, b, coll)
print(b:getUserData().name .. " is not in air")
b:getUserData().inAir = false
b:getUserData().jumpdouble = true
- w:createEffect("land", b:getBody():getX()-12, b:getBody():getY()-15)
+ b:getUserData().world:createEffect("land", b:getBody():getX()-12, b:getBody():getY()-15)
end
end