From 12af452c3ff9686502c9a83dbd088b88e5b7cefb Mon Sep 17 00:00:00 2001 From: Aki Date: Mon, 1 Aug 2016 17:28:57 +0200 Subject: Landing bug fix --- world.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/world.lua b/world.lua index a69b532..01fed0b 100644 --- a/world.lua +++ b/world.lua @@ -287,7 +287,6 @@ function World:draw() -- Background love.graphics.draw(self.background, 0, 0, 0, scaler, scaler) - -- This needs to be reworked! -- Draw clouds for _,cloud in pairs(self.Clouds) do @@ -370,7 +369,7 @@ end function World.beginContact(a, b, coll) if a:getCategory() == 1 then local x,y = coll:getNormal() - if y == -1 then + if y < -0.6 then print(b:getUserData().name .. " is not in air") -- Move them to Player b:getUserData().inAir = false -- cgit v1.1