Prev: C8AB Up: Map Next: C8EA
C8D5: Draw the candidate and start the next pass
Used by the routine at SORT_AND_DRAW.
The end of the list was reached with nothing found that has to be drawn before the candidate. Its entry is marked drawn (bit 7), the candidate chain emptied, the object counted in DRAW_WORK and drawn (CALC_PIXEL_XY_AND_RENDER); then back to the top of the list for the next. IY_GOES_FIRST comes in at DRAW_AND_NEXT_PASS to draw an object that closes a circle.
Input
IX the object
DRAW_CANDIDATE C8D5 LD HL,(SORT_FIRST) HL = just past the candidate's entry
This entry point is used by the routine at IY_GOES_FIRST.
DRAW_AND_NEXT_PASS C8D8 DEC HL Its entry: drawn
C8D9 SET 7,(HL)
C8DB LD A,$FF The chain is empty again
C8DD LD (CANDIDATE_CHAIN),A
C8E0 LD HL,DRAW_WORK One more object drawn this turn
C8E3 INC (HL)
C8E4 CALL CALC_PIXEL_XY_AND_RENDER Draw it; then the next pass
C8E7 JP SORT_PASS
Prev: C8AB Up: Map Next: C8EA