![]() |
Routines |
| Prev: 38133 | Up: Map | Next: 38221 |
|
Used by the routine at HandlerDoorClosed.
Opens the doorway of a door if bit 0 of its sprite ID is set (which is so for the doors that are open), and closes it if it is not. The other entry points open and close the doorway of a door whatever the sprite ID. The doorway is open when bit 3 of the attribute is reset for both halves of the door, because CheckObstacles skips the doors that have it set.
|
||||||||
| UpdateDoorway | 38214 | LD A,(IX+0) | Fetch the sprite ID of the door. | |||||
| 38217 | AND %00000001 | Keep only bit 0. | ||||||
| 38219 | JR Z,CloseDoorway | Jump to CloseDoorway if it is reset. | ||||||
| Prev: 38133 | Up: Map | Next: 38221 |