pellinor0 / TweakScale

Forked from Gaius Goodspeed's Goodspeed Aerospace Part & TweakScale plugin
29 stars 23 forks source link

don't throw "negative cost" error for precision errors #74

Closed pellinor0 closed 6 years ago

pellinor0 commented 6 years ago

https://forum.kerbalspaceprogram.com/index.php?/topic/161096-12-13-release-mk25-spaceplane-parts-rebuilt-expanded/&page=3&tab=comments#comment-3189463

[ERR 20:10:31.838] TweakScale::PrefabDryCostWriter: negative dryCost: part=mk25Fuselage0500.LF, DryCost=-1.752377E-05

this is probably a result of subtracting costs that are only valid up to float accuracy, and should be rounded silently.

pellinor0 commented 6 years ago

Done for v2.3.7