Prev: 85C2 Up: Map Next: 85F7
85D0: Turn the sorted places into distances from one to the next
Used by the routine at DRAW_VIEW.
So DRAW_SCENE can use each as a CPIR count. The first entry keeps its place.
SPRITE_DISTANCES 85D0 LD B,$07 From the last entry back.
85D2 LD IX,RESCUEE_SPRITE
85D6 LD L,(IX+$03)
85D9 LD H,(IX+$04)
85DC JR SPRITE_DISTANCES_1
SPRITE_DISTANCES_0 85DE DEC IX
85E0 DEC IX
85E2 DEC IX
85E4 EX DE,HL
SPRITE_DISTANCES_1 85E5 LD E,(IX+$00) This place less the one before.
85E8 LD D,(IX+$01)
85EB AND A
85EC SBC HL,DE
85EE LD (IX+$03),L
85F1 LD (IX+$04),H
85F4 DJNZ SPRITE_DISTANCES_0
85F6 RET
Prev: 85C2 Up: Map Next: 85F7