saltyhotdog / BattletechIssueTracker

Public issue tracker to communicate with modders and HBS.
MIT License
6 stars 0 forks source link

Paper doll rear structure display incorrect structure information #18

Open Sheep-y opened 6 years ago

Sheep-y commented 6 years ago

Describe the location in the code your question is about BattleTech.UI.HUDMechArmorReadout, method UpdateMechStructureAndArmor(AttackDirection)

What is the question you have about this code? The method calculates colour flash, then loop through each location to update their outline, armour, and structure colours. The last part of the loop intend to show rear structure colour, but seems to be copy and pasted incorrectly from front structure code. It checks the incorrect armor breach flag, and use the front structure colour array instead of rear. Since the rear is flipped, it is also showing the reverse side.

Because HUDMechArmorReadout is reused in Mech Bay and Called Shot panel, the bug also manifest there, in addition to Selcetion and Target panels.

Leave any additional comments here Workaround: Bug is patched in AIM mod v2.0.