Prev: 41210 Up: Map Next: 41337
41310: Resolve Full Overlap
Chooses what to do when two items overlap along all three coordinates. An item with the flags 3 is drawn before the other item.
ResolveFullOverlap 41310 LD HL,(41390) Fetch the address of the entry after the item under consideration.
41313 DEC HL Move back to the start of the entry...
41314 DEC HL ...in the draw list...
41315 DEC HL ...which is three bytes.
41316 LD A,(HL) Fetch the flags of the item under consideration.
41317 CP 3 Jump to SortDrawList_SecondLoop to carry on with the next other item if they are the same.
41319 JP Z,SortDrawList_SecondLoop
41322 LD HL,(41392) Fetch the address of the entry after the other item.
41325 DEC HL Move back to the start of the entry...
41326 DEC HL ...in the draw list...
41327 DEC HL ...which is three bytes.
41328 LD A,(HL) Fetch the flags of the other item.
41329 CP 3 Jump to DrawOtherItemFirst if they are the same, to draw the other item first.
41331 JP Z,DrawOtherItemFirst
41334 JP SortDrawList_SecondLoop Jump to SortDrawList_SecondLoop to carry on with the next other item.
Prev: 41210 Up: Map Next: 41337