Bug in SetUnitHasHealthBar

Started by planetfall, January 22, 2017, 09:09:14 AM

Previous topic - Next topic

planetfall

In the attached mission, ore deposits can be mined using lathes. Any damage they receive is caught by the script, values are updated, and their health is reset. To make it less obvious that this is going on, the ore deposits have Self 0 SetUnitHasHealthBar in their :awake functions. For playing through in one go, this works. However, if you save and reload while a deposit is being lathed, the health bar reappears and doesn't disappear if you stop lathing it.
Pretty sure I'm supposed to be banned, someone might want to get on that.

Quote from: GoodMorning on December 01, 2016, 05:58:30 PM"Build a ladder to the moon" is simple as a sentence, but actually doing it is not.

knucracker

Fixed in the next build... The actual health/energy bars weren't getting cleaned up when that call was made.  So they were being marooned and showing visually (but not updating).