![]() |
Routines |
| Prev: C069 | Up: Map | Next: C099 |
|
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 | C082 | LD IY,$5B88 | Point IY at PlayerBottomObject. | |||||||||
| C086 | LD A,(IY+$00) | Fetch the sprite number of the player. | ||||||||||
| C089 | AND A | Return if the slot is not used. | ||||||||||
| C08A | RET Z | |||||||||||
| C08B | BIT 3,(IY+$07) | Return if the player is not flagged to be adjusted near arches. | ||||||||||
| C08F | RET Z | |||||||||||
| C090 | CALL TestNearTo | Call TestNearTo. | ||||||||||
| C093 | RET NC | Return if the player is not near. | ||||||||||
| C094 | SET 0,(IY+$07) | Flag the player as near an arch. | ||||||||||
| C098 | RET | Return. | ||||||||||
| Prev: C069 | Up: Map | Next: C099 |