Relocate and use MAP_TILESET_SIZE (#586)

This commit is contained in:
PokefanMarcel
2026-06-08 17:50:47 +02:00
committed by GitHub
parent dee349ecd7
commit ee16bd72ee
3 changed files with 3 additions and 3 deletions

View File

@@ -1,3 +1,5 @@
DEF MAP_TILESET_SIZE EQU $60 ; tiles
; tileset ids
; Tilesets indexes (see data/tilesets/tileset_headers.asm)
const_def

View File

@@ -1,5 +1,3 @@
DEF MAP_TILESET_SIZE EQU $60
UpdatePlayerSprite:
ld a, [wSpritePlayerStateData2WalkAnimationCounter]
and a

View File

@@ -875,7 +875,7 @@ LoadTilesetTilePatternData::
ld a, [wTilesetGfxPtr + 1]
ld h, a
ld de, vTileset
ld bc, $600
ld bc, MAP_TILESET_SIZE tiles
ld a, [wTilesetBank]
jp FarCopyData2