Skip to content
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

Display fragment mass with 2 decimal places #37858

Merged
merged 1 commit into from
Feb 9, 2020

Conversation

jkraybill
Copy link
Contributor

Summary

SUMMARY: Interface "Display fragment mass with 2 decimal places"

Purpose of change

Fixes #37614 to show 2 decimal places in fragment mass for explosives.

Describe the solution

Changed the code to format mass to 2 DP's instead of the current integer rounding. Now it looks like this:
image

Describe alternatives you've considered

1 decimal place or 3 decimal places; 2 DP's looked the most appropriate since I could find elements with 2 significant DP's but not 3.

Testing

Replicated the report in #37614 easily, then rebuilt and re-tested with the formatting code.

@Brian-Otten
Copy link
Contributor

Thanks for tackling this, should help players understand how their explosives work a decent bit.

@ZhilkinSerg ZhilkinSerg added [C++] Changes (can be) made in C++. Previously named `Code` Info / User Interface Game - player communication, menus, etc. labels Feb 9, 2020
@ZhilkinSerg ZhilkinSerg merged commit 32d5213 into CleverRaven:master Feb 9, 2020
@jkraybill jkraybill deleted the 37614b branch February 9, 2020 21:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[C++] Changes (can be) made in C++. Previously named `Code` Info / User Interface Game - player communication, menus, etc.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Show decimals on ingame fragment mass.
3 participants