From 6146a0ac36df3557280a0135b71fee0e2b629ee2 Mon Sep 17 00:00:00 2001 From: ne_mene Date: Fri, 13 Mar 2026 18:23:11 +0100 Subject: fix --- src/phys.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/phys.lua') diff --git a/src/phys.lua b/src/phys.lua index 2b1e101..e55f5c7 100644 --- a/src/phys.lua +++ b/src/phys.lua @@ -107,8 +107,9 @@ end function box_in_tilemap(map, box) local x, y, width, height = box:get_rect() - local value - value = has_tile(map, to_tile_coords(x, y)) + if has_tile(map, to_tile_coords(x, y)) then + return true + end if has_tile(map, to_tile_coords(x + width, y)) then return true end -- cgit v1.3-2-g0d8e