Skip to content

Commit

Permalink
Fix dagr not showing bearing in mils (#5047)
Browse files Browse the repository at this point in the history
  • Loading branch information
PabstMirror authored Mar 30, 2017
1 parent a13a685 commit 4a24759
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion addons/dagr/functions/fnc_outputWP.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,11 @@ GVAR(outputPFH) = [{
});

// WP Heading
_bearing = floor ((_WPpos vectorDiff _MYpos) call CBA_fnc_vectDir);
_bearing = floor (if (GVAR(useDegrees)) then {
((_WPpos vectorDiff _MYpos) call CBA_fnc_vectDir)
} else {
DEG_TO_MIL(((_WPpos vectorDiff _MYpos) call CBA_fnc_vectDir))
});

// Output
__gridControl ctrlSetText format ["%1", _dagrGrid];
Expand Down

0 comments on commit 4a24759

Please sign in to comment.