Fix dagr not showing bearing in mils (#5047)

This commit is contained in:
PabstMirror 2017-03-30 10:02:13 -05:00 committed by GitHub
parent a13a685258
commit 4a24759650

View File

@ -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];