aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/phys.lua5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/phys.lua b/src/phys.lua
index d35f612..8cf0613 100644
--- a/src/phys.lua
+++ b/src/phys.lua
@@ -107,7 +107,7 @@ function collision_check(box)
for _, layer in ipairs(box.mask) do
for _, other in ipairs(world.layers[layer] or {}) do
if other == box then
- goto continue
+ goto collision_check_continue
end
other_x, other_y, other_width, other_height = other:get_rect()
@@ -117,7 +117,7 @@ function collision_check(box)
) then
return true
end
- ::continue::
+ ::collision_check_continue::
end
end
return false
@@ -133,6 +133,7 @@ function phys.Box:update(velx, vely, dt)
-- this block is fat. much like a certain croatian...
-- not anymore :D
-- shut up
+ -- welc
for i = 1, steps do
local p = i / steps
local before