Identify wObjectPriorities
This commit is contained in:
@@ -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
|
||||
|
@@ -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