![]() |
Routines |
| Prev: CA81 | Up: Map | Next: CB2D |
|
This calls get_target then puts the returned coordinates in vischar.target and sets flags.
Used by the routines at set_route, accept_bribe, character_behaviour, target_reached and route_ended.
|
||||||||
| get_target_assign_pos | CB23 | PUSH HL | Preserve the route pointer | |||||
| CB24 | CALL get_target | Get our next target - a location, a door or 'route ends'. The result is returned in A, target pointer returned in HL | ||||||
| CB27 | CP $FF | Did get_target return get_target_ROUTE_ENDS? ($FF) | ||||||
| CB29 | JP NZ,handle_target | Jump if not | ||||||
| CB2C | POP HL | Restore the route pointer | ||||||
|
FALL THROUGH into route_ended.
|
||||||||
| Prev: CA81 | Up: Map | Next: CB2D |