View Issue Details

IDProjectCategoryLast Update
0015335AI War 1 / ClassicBug - OtherJun 6, 2014 12:26 pm
Reportergiftgruen Assigned Tokeith.lamothe  
Status resolvedResolutionfixed 
Product Version7.033 
Fixed in Version7.034 
Summary0015335: Wrong health percentage in "units selected" list
DescriptionWeak units with health < 100 have their health percentage displayed wrong. E.g. a Scout Mk I with full health currently shows in the selection as Scout I x1 30%/30%. Other units like the space planes Mk I and II show 146% and 117% respectively. Further inspection indicated that all units with < 100 health have full-HP percents that equal their absolute HP number (Scout I and II, Tachyon Drone) while all units with a max health that isn't a multiple of 100 (several military units on Mk I level, Remains Rebuilder, Economic Command station) have relative health shown as > 100%.
It seems to be calculated as x%=(CurrentHP/(MaxHP/100)) with MaxHP/100 being rounded to an integer, which started producing weird numbers after the downscaling. If that's the case, 100*CurrHP/MaxHP should do it.
TagsNo tags attached.
Internal WeightNew

Activities

Winge

May 31, 2014 10:35 pm

reporter   ~0038404

I've seen this as well. Pretty easy to reproduce, as even starting a game gives you two Mk II scouts, which (IIRC) will show up at 60% HP in the tooltip on the bottom-right corner.

keith.lamothe

Jun 6, 2014 12:26 pm

administrator   ~0038459

For 7.034:

* Fixed a bug where the selection description window (lower-right corner, thereabouts) messed up the display of remaining health percentages for ships with small health values (it was dividing by 100 and discarding the remainder, which didn't really matter until recently...).

Thanks :)

Issue History

Date Modified Username Field Change
May 31, 2014 8:04 am giftgruen New Issue
May 31, 2014 10:35 pm Winge Note Added: 0038404
Jun 6, 2014 12:26 pm keith.lamothe Internal Weight => New
Jun 6, 2014 12:26 pm keith.lamothe Note Added: 0038459
Jun 6, 2014 12:26 pm keith.lamothe Status new => resolved
Jun 6, 2014 12:26 pm keith.lamothe Fixed in Version => 7.034
Jun 6, 2014 12:26 pm keith.lamothe Resolution open => fixed
Jun 6, 2014 12:26 pm keith.lamothe Assigned To => keith.lamothe