From: Lukas Krickl Date: Mon, 17 Nov 2025 12:46:20 +0000 (+0100) Subject: tiles: adjacent clear now uses the struct's size instead of a hard-coded value X-Git-Url: https://git.krickl.dev/?a=commitdiff_plain;h=6a6434416199aac60ab821bbaf228397b693617e;p=gbrg%2F.git tiles: adjacent clear now uses the struct's size instead of a hard-coded value --- diff --git a/src/tiles.s b/src/tiles.s index c1be26e..0a8891f 100644 --- a/src/tiles.s +++ b/src/tiles.s @@ -188,7 +188,7 @@ tile_get_adjacent: ; clear adjacent tiles ; stored by previous frame ld hl, tiles_adjacent - ld bc, 2 * TILES_ADJACENT_MAX + ld bc, ta_size * TILES_ADJACENT_MAX ld de, 0 call memset