Prev: 48081 Up: Map Next: 48191
48164: Draw all objects in Magic Knight's current room
Used by the routine at 39393.
48164 LD IX,24922 Point IX at start of objects' current positions table
48168 LD C,0 Set current object to zero
48170 LD B,42 Set counter to 42 (as there are 42 objects, including "nothing at all")
48172 LD A,(23702) Load A with Magic Knight's current room
48175 CP (IX+0) If object and Magic Knight are in the same room...
48178 CALL Z,48202 ...then set terrain interaction data for character blocks spanned by that object and draw
48181 INC C Increase C
48182 INC IX Advance to next object...
48184 INC IX ...
48186 INC IX ...
48188 DJNZ 48172 ...and loop back to 48172 for next object
48190 RET Return
Prev: 48081 Up: Map Next: 48191