diff options
Diffstat (limited to 'src/phys.lua')
| -rw-r--r-- | src/phys.lua | 5 |
1 files changed, 3 insertions, 2 deletions
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 |
