Prev: 8C3F Up: Map Next: 8C67
8C58: Turn an object that is out of view back towards it
Used by the routine at place_object.
Jumped to by place_object. Not for types $1D and $1E, nor while the object is in view (edge_flags, its +$10 as last drawn, bit 7). Otherwise it runs on into head_for_view, which turns it.
Input
IX The object
steer_to_view 8C58 LD A,(IX+$00) Not types $1D, $1E
8C5B CP $1D
8C5D RET Z
8C5E CP $1E
8C60 RET Z
8C61 LD A,(edge_flags) Not while in view
8C64 AND $80
8C66 RET NZ
Prev: 8C3F Up: Map Next: 8C67