Prev: CA81 Up: Map Next: CB2D
CB23: Get target, assign position
This calls get_target then puts the returned coordinates in vischar.target and sets flags.
Input
HL Pointer to route
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