Prev: 61E0 Up: Map Next: 6208
61FE: Offset Blip Left
Used by the routine at LocateRadarBlip.
Continues LocateRadarBlip when the target is to the left of the player (or level with it). The horizontal distance is scaled to radar pixels and taken away from the centre column of the radar. If the target is too far away then the blip is hidden.
Input
HL Horizontal distance from the target to the player
IX Radar blip record
OffsetBlipLeft 61FE CALL MultiplyHLByFour Call MultiplyHLByFour to multiply the distance by 04 which leaves the distance in radar pixels in H.
6201 LD A,$0C A=0C (the centre column of the radar).
6203 SUB H Take the distance away from the centre column to give the column to the left of the player.
6204 JR C,HideRadarBlip If the target is more than 0C pixels to the left then jump to HideRadarBlip.
6206 JR LocateRadarBlip_StoreColumn Jump to LocateRadarBlip_StoreColumn to store the column.
Prev: 61E0 Up: Map Next: 6208