alienari / bitfighter

Automatically exported from code.google.com/p/bitfighter
Other
0 stars 0 forks source link

Turret appearance bug #474

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
When I place a neutral turret, it appears like the turret on the left: full 
health, colored white. However when I exit and reenter the editor it appears 
like the turret on the right: no health, still colored white. Interestingly, 
team turrets are in opposite. Team turrets appear empty at first, then after 
exiting the editor they appear full. I'm not sure which graphic is intended.

http://i.imgur.com/RiuexXV.png

Original issue reported on code.google.com by Jomskylark on 30 Oct 2014 at 3:34

GoogleCodeExporter commented 9 years ago
I found the cause - 

Normally, neutral turrets are loaded with 0 health, normal turrets with full 
health.  The problem comes in when selecting a turret and changing its team, or 
copy/pasting a turret.  It will keep its current health or that of the copied 
turret.

The solution is to set health to 0 whenever neutral, full otherwise.  A similar 
problem exists with FFs, but in this case we actually show full health for 
neutral forcefields in the editor.

Original comment by buckyballreaction on 30 Oct 2014 at 4:44

GoogleCodeExporter commented 9 years ago
Partial workaround/fix in r90471a85c0

Doesn't work in preview mode.  This may require a re-architecting of how turret 
health works.

Original comment by buckyballreaction on 31 Oct 2014 at 4:32

GoogleCodeExporter commented 9 years ago
Fixed, both in editor and in preview

Original comment by watusim...@bitfighter.org on 15 Feb 2015 at 9:18