Prev: B6B0 Up: Map Next: B6C8
B6B3: 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 (DRAW_OBJECT); 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 B6B3 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 B6B6 DEC HL its entry: drawn
B6B7 SET 7,(HL)
B6B9 LD A,$FF the chain is empty again
B6BB LD (CANDIDATE_CHAIN),A
B6BE LD HL,DRAW_WORK one more object drawn this turn
B6C1 INC (HL)
B6C2 CALL DRAW_OBJECT draw it; then the next pass
B6C5 JP SORT_PASS
Prev: B6B0 Up: Map Next: B6C8