Prev: D0C4 Up: Map Next: D0D0
D0C5: The other thing becomes the candidate
Used by the routine at DEPTH_BY_CORNERS.
Reached through DEPTH_TABLE, and from DEPTH_BY_CORNERS, when the thing compared (IY) is further back than the candidate: it becomes the candidate, and DRAW_LIST_AT moves to just past its entry, which is the one SORT_AND_DRAW_THINGS will mark drawn.
Input
IY the thing further back
DEPTH_SWAP D0C5 LD HL,(DRAW_LIST_NEXT) DRAW_LIST_AT = DRAW_LIST_NEXT; IX = IY
D0C8 LD (DRAW_LIST_AT),HL
D0CB PUSH IY
D0CD POP IX
D0CF RET
Prev: D0C4 Up: Map Next: D0D0