tiles: adjacent clear now uses the struct's size instead of a hard-coded value
authorLukas Krickl <lukas@krickl.dev>
Mon, 17 Nov 2025 12:46:20 +0000 (13:46 +0100)
committerLukas Krickl <lukas@krickl.dev>
Mon, 17 Nov 2025 12:46:20 +0000 (13:46 +0100)
src/tiles.s

index c1be26ea9996c67d3c0d4dc472f9b315d91e228d..0a8891fb9c051f14663eda2150c2bee9f63dd0fd 100644 (file)
@@ -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