Skip to content

Commit e79f979

Browse files
author
StormDelay
committed
Bombing: always round up the number of bomb to the higher first decimal place to avoid misleading display i.e. 7.03 displays 7.1 and not 7.0
1 parent 138e7cd commit e79f979

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

gui/builtinStatsViews/bombingViewFull.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919

2020
# noinspection PyPackageRequirements
2121
import wx
22+
import math
2223

2324
import gui.mainFrame
2425
from gui.bitmap_loader import BitmapLoader
@@ -148,7 +149,7 @@ def refreshPanel(self, fit):
148149
(min(bomb.attributes['signatureRadius'].value, shipSigRadius) /
149150
bomb.attributes['signatureRadius'].value)
150151
label = getattr(self, "labelDamagetypeCovertlevel%s%s" % (damageType.capitalize(), covertLevel))
151-
label.SetLabel("{:.1f}".format(ehp / appliedBombDamage))
152+
label.SetLabel("{:.1f}".format(math.ceil((ehp / appliedBombDamage) * 10) / 10))
152153
if covertLevel is not "0":
153154
label.SetToolTip("Number of %s to kill a %s using a %s "
154155
"with Covert Ops level %s" % (bomb.customName, fit.name, bomber, covertLevel))

0 commit comments

Comments
 (0)