[Bug] Overflow of Progressbar of upgrade-points

This bug is rather theoretical, but in the new “Free Build” mode it can happen: The progress-bar of the upgrade-points can only handle one extra-point per day. If you have more than 60 Researcher / Explorer and thus get more than 1 upgrade-point per day, the bar will extend to the right.

I guess there is only a test like

if(progressbar_value > progressbar_max){ progressbar_value -= progressbar_max; upgradepoints++; }

then a solution could be

while(progressbar_value > progressbar_max){ progressbar_value -= progressbar_max; upgradepoints++; }
image

You are absolutely right in both the cause and the solution. Thank you! :smiley: