summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAki <nthirtyone@gmail.com>2016-08-01 17:28:57 +0200
committerAki <nthirtyone@gmail.com>2016-08-01 17:28:57 +0200
commit12af452c3ff9686502c9a83dbd088b88e5b7cefb (patch)
tree65e48a56995b4717a1a615ae17b145a29933f044
parent297f123251c99f2fd872eef9e0ad54dc4f38a1c3 (diff)
downloadroflnauts-12af452c3ff9686502c9a83dbd088b88e5b7cefb.zip
roflnauts-12af452c3ff9686502c9a83dbd088b88e5b7cefb.tar.gz
roflnauts-12af452c3ff9686502c9a83dbd088b88e5b7cefb.tar.bz2
Landing bug fix
-rw-r--r--world.lua3
1 files changed, 1 insertions, 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