You've already forked pokecrystal-board
mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2025-09-08 08:13:02 -07:00
Identify wObjectPriorities
This commit is contained in:
@@ -2781,12 +2781,12 @@ InitSprites:
|
||||
|
||||
.DeterminePriorities:
|
||||
xor a
|
||||
ld hl, wMovementPointer
|
||||
ld hl, wObjectPriorities
|
||||
ld bc, NUM_OBJECT_STRUCTS
|
||||
call ByteFill
|
||||
ld d, 0
|
||||
ld bc, wObjectStructs
|
||||
ld hl, wMovementPointer
|
||||
ld hl, wObjectPriorities
|
||||
.loop
|
||||
push hl
|
||||
call DoesObjectHaveASprite
|
||||
@@ -2833,7 +2833,7 @@ InitSprites:
|
||||
ret
|
||||
|
||||
.InitSpritesByPriority:
|
||||
ld hl, wMovementPointer
|
||||
ld hl, wObjectPriorities
|
||||
.next_sprite
|
||||
ld a, [hli]
|
||||
ld d, a
|
||||
|
||||
Reference in New Issue
Block a user