[0.14.0] Energy bar can go beyond 0% and 100%
Posted: Fri Aug 26, 2016 9:50 am
Bug:
The energy production bar can go beyond 0% and 100% if free energy is given to accumulator by mod. Steps to reproduce:
1) Download the following little mod. 0.13: 0.14: 2) Start a new game.
3) Place an electric pole and an accumulator next to the pole.
4) Select the electric pole to open the electric network info panel.
5) Observe the energy production bar.
Possible solution:
Clamp the progress bar to be inside 0% and 100%.
I think this is also affecting all progress bars in the game as I have seen this on the fuel bars of entities that don't use electric energy.
The energy production bar can go beyond 0% and 100% if free energy is given to accumulator by mod. Steps to reproduce:
1) Download the following little mod. 0.13: 0.14: 2) Start a new game.
3) Place an electric pole and an accumulator next to the pole.
4) Select the electric pole to open the electric network info panel.
5) Observe the energy production bar.
Possible solution:
Clamp the progress bar to be inside 0% and 100%.
I think this is also affecting all progress bars in the game as I have seen this on the fuel bars of entities that don't use electric energy.