Identify wObjectPriorities

This commit is contained in:
Rangi
2020-06-15 23:28:24 -04:00
parent bb0264e619
commit 4342ced31f
3 changed files with 17 additions and 8 deletions

View File

@@ -314,7 +314,7 @@ UpdateStackTop:
FindStackTop:
; Find the furthest point that sp has traversed to.
; This is distinct from the current value of sp.
ld hl, wStack - $ff
ld hl, wStackBottom
.loop
ld a, [hl]
or a

View File

@@ -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