Prev: 49912 Up: Map Next: 49993
49965: Check room item data sets to see if any doors need setting up
Used by the routine at 49993.
Input
HL Address pointer to room data sets containing the room's scenery items (31744)
Check through data sets at 31744 to see if any doors (item type number = 2) need setting up
Get one of the 16-byte room item data sets (at 31744) and copy it across to a working data buffer at 60227:
49965 LD DE,60227 Working buffer address pointer
49968 LD B,16 16 bytes to copy over
49970 LD (60094),HL Store address pointer to item data set (at 31744)
49973 LD A,(HL) Copy byte across
49974 LD (DE),A
49975 INC DE
49976 INC HL
49977 DJNZ 49973 Repeat for 16 bytes
Check if the data set is door data
49979 LD A,(60227) First byte of the data bank indicates the type of graphic
49982 CP 255
49984 JP Z,50218 If it's 255 it means no more data to deal with
49987 CP 2 Is this data for a door (item type = 2)?
49989 JR Z,49993
49991 JR 49965 If not, check the next set
Prev: 49912 Up: Map Next: 49993