Sync some files with pokegold

This commit is contained in:
Rangi
2021-03-24 10:24:52 -04:00
parent 8bf76af5a7
commit dc18e188b2
8 changed files with 22 additions and 14 deletions

View File

@@ -2746,9 +2746,9 @@ _UpdateSprites::
.fill
ld a, [wVramState]
bit 1, a
ld b, OBJECT_LENGTH * SPRITEOAMSTRUCT_LENGTH
ld b, NUM_SPRITE_OAM_STRUCTS * SPRITEOAMSTRUCT_LENGTH
jr z, .ok
ld b, 28 * SPRITEOAMSTRUCT_LENGTH
ld b, (NUM_SPRITE_OAM_STRUCTS - 12) * SPRITEOAMSTRUCT_LENGTH
.ok
ldh a, [hUsedSpriteIndex]
cp b