Istar-Eldritch / ThermalSystem

A thermal management system for DayZ
Other
1 stars 2 forks source link

Max energy calculations are wrong. #31

Open Istar-Eldritch opened 4 months ago

Istar-Eldritch commented 4 months ago

In some circumstances the max energy calculations will be wrong, this is becaus we use Math.Abs to compare the maximum energy possible to transfer with the actual energy to transfer. If the values have different vectors (one adds the other substracts then the transfer may be reduced to max, even when it would be ok to do a bigger transfer.