Heysus
2009-12-30 20:50:49
Points the compass towards a point on the minimap.
Function MakeCompassPoint(x, y: integer): boolean;
var
a: extended;
begin
a := rs_GetCompassAngleDegrees;
if (a < 0) or (not LoggedIn) then
exit;
a := a + 90 + Degrees(ArcTan2(y - MMCY, x - MMCX));
Result := MakeCompass(a);
end;