[Rseding91] [0.15.35] Non-rounded numbers in bonus gui after tech reset
Posted: Fri Oct 06, 2017 9:29 am
When unresearching the bonus technologies, some of them display their full floating point number (that isn't quite 0, although they should be exactly 0 ) in the bonus gui, instead of rounding to 0 or not displaying at all.
To reproduce:
1. Start a new sandbox game, let all tech be researched
2. Paste into the console
3. Open bonus gui
4. Tada:
To reproduce:
1. Start a new sandbox game, let all tech be researched
2. Paste
Code: Select all
/c for _, tech in pairs(game.player.force.technologies) do
tech.researched=false
game.player.force.set_saved_technology_progress(tech, 0)
end
3. Open bonus gui
4. Tada: