-
Notifications
You must be signed in to change notification settings - Fork 737
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[MicroDAGR] get the meters for mortars (better rangetable calcs) #5802
Conversation
@@ -89,7 +89,7 @@ case (APP_MODE_INFODISPLAY): { | |||
([_bearing, 3, 1] call CBA_fnc_formatNumber) + "°" //degree symbol is in UTF-8 | |||
}; | |||
private _2dDistanceKm = ((getPosASL ACE_player) distance2D _targetPosLocationASL) / 1000; | |||
_rangeText = format ["%1km", ([_2dDistanceKm, 1, 1] call CBA_fnc_formatNumber)]; | |||
_rangeText = format ["%1km", ([_2dDistanceKm, 1, 3] call CBA_fnc_formatNumber)]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CBA_fnc_formatNumber
can be replaced by the toFixed
command 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
Just checked reference [PDF] - https://www.rockwellcollins.com/-/media/Files/Unsecure/Products/Product_Brochures/Navigation_and_Guidance/GPS_Devices/MicroDAGR_data_sheet.ashx and it does seem to use have meter resolution on the info screen |
* get the 10m for mortars * get the exact meter * use toFixed * that evil ) * thx travis
When merged this pull request will: