diff options
| author | iamcheeseman <[email protected]> | 2026-03-13 15:25:24 -0400 |
|---|---|---|
| committer | iamcheeseman <[email protected]> | 2026-03-13 15:25:24 -0400 |
| commit | 2b8a3df8749bb73f1d070d76aa304e5b85a1f3fc (patch) | |
| tree | b9b8aa6d670b34dd919cbb0ede6e11922242f4ed /src/phys.lua | |
| parent | 332d00e92bf620b6dd11dc10096ead7a5badd7f4 (diff) | |
| parent | 6146a0ac36df3557280a0135b71fee0e2b629ee2 (diff) | |
Merge branch 'main' of ssh://codeberg.org/the-gutter/gutshot
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 |
