Prev: 9546 Up: Map Next: 9565
954D: Open a door, both halves at once
Used by the routines at DOOR_NEEDS_KEY, DOOR_SERF and ACG_DOOR.
Clear bit 3 of the drawing mode -- the bit that says a door is shut, which TEST_ROOM_BOXES reads to decide whether the doorway lets the player through -- and clear it on the far side too, so the two halves never disagree about whether the door is open. DOOR_NEEDS_KEY calls it when the player is carrying the right key, the character doors when the right character walks up, TIMED_DOOR_SHUT's toggle, and ACG_DOOR.
OPEN_DOOR 954D LD A,(IX+$05) Bit 3 off: open.
9550 AND $F7
9552 LD (IX+$05),A
9555 PUSH IX Now the other side.
9557 CALL DOOR_OTHER_SIDE
955A LD A,(IX+$05) The same there.
955D AND $F7
955F LD (IX+$05),A
9562 POP IX
9564 RET
Prev: 9546 Up: Map Next: 9565