Page 1 of 1

[Rseding91] [0.15.35] Non-rounded numbers in bonus gui after tech reset

Posted: Fri Oct 06, 2017 9:29 am
by Bilka
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

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
into the console
3. Open bonus gui
4. Tada:
bonus_gui_bug.png
bonus_gui_bug.png (304.33 KiB) Viewed 2270 times

Re: [Rseding91] [0.15.35] Non-rounded numbers in bonus gui after tech reset

Posted: Fri Oct 06, 2017 4:26 pm
by Rseding91
Thanks for the report. I've fixed for for 0.16.