From: Brendan Hansen Date: Tue, 22 Dec 2020 16:21:26 +0000 (-0600) Subject: updated day 20 for a small issue X-Git-Url: https://git.brendanfh.com/?a=commitdiff_plain;h=d1ab4c758fe258af55e18ad27cea6a59ff5399f1;p=onyx-aoc-2020.git updated day 20 for a small issue --- diff --git a/day20.onyx b/day20.onyx index 6cbc048..d6c1072 100644 --- a/day20.onyx +++ b/day20.onyx @@ -209,8 +209,8 @@ sea_monster := u8.[ scan_for_monsters :: proc (forest: ^u8, ori: TO, width: u32, height: u32) -> bool { found_monsters := false; - for y: 0 .. height - sea_monster_height - 1 { - for x: 0 .. width - sea_monster_width - 1 { + for y: 0 .. height - sea_monster_height { + for x: 0 .. width - sea_monster_width { is_monster := true; for my: 0 .. sea_monster_height {