![]() |
Routines |
| Prev: 49257 | Up: Map | Next: 49305 |
|
Used by the routine at HandleNearArch.
Flags the player as being near an arch (bit 0 of the flags), if close to the middle of the doorway.
|
||||||||||||
|
Test that the player is flagged to be adjusted and is near the doorway.
|
||||||||||||
| FlagPlayerNearArch | 49282 | LD IY,23432 | Point IY at PlayerBottomObject. | |||||||||
| 49286 | LD A,(IY+0) | Fetch the sprite number of the player. | ||||||||||
| 49289 | AND A | Return if the slot is not used. | ||||||||||
| 49290 | RET Z | |||||||||||
| 49291 | BIT 3,(IY+7) | Return if the player is not flagged to be adjusted near arches. | ||||||||||
| 49295 | RET Z | |||||||||||
| 49296 | CALL TestNearTo | Call TestNearTo. | ||||||||||
| 49299 | RET NC | Return if the player is not near. | ||||||||||
| 49300 | SET 0,(IY+7) | Flag the player as near an arch. | ||||||||||
| 49304 | RET | Return. | ||||||||||
| Prev: 49257 | Up: Map | Next: 49305 |