You've already forked pokecrystal-board
mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2025-04-09 05:44:44 -07:00
Enforce capacity limit of sprite list in VRAM (#2); actually fix LoadSpriteGFX (#8) [bugfix to 59bda0b36b
]
This commit is contained in:
@@ -333,9 +333,9 @@ LoadSpriteGFX:
|
||||
ret
|
||||
|
||||
.LoadSprite:
|
||||
push de
|
||||
push bc
|
||||
call GetSprite
|
||||
pop de
|
||||
pop bc
|
||||
ld a, l
|
||||
ret
|
||||
|
||||
@@ -383,9 +383,10 @@ ArrangeUsedSprites:
|
||||
ld a, [hl]
|
||||
call GetSpriteLength
|
||||
|
||||
; There are only two tables, so don't go any further than that.
|
||||
; Don't go any further than the second row in the second table.
|
||||
add b
|
||||
jr c, .quit
|
||||
cp $a0 + 1
|
||||
jr nc, .quit
|
||||
|
||||
ld [hl], b
|
||||
ld b, a
|
||||
|
Reference in New Issue
Block a user