temperature incorrect in conduits under certain circumstances

  • Pending

When an Element is being added to a Conduit which is backed up with the same element that's being added, the temperature calculation for the merged ConduitContents packet is incorrect

location of bug: class ConduitFlow => public float AddElement

float num = Mathf.Min(mass, 10f - frontContents.mass);
frontContents.temperature = GameUtil.GetFinalTemperature(temperature, mass, frontContents.temperature, frontContents.mass);

the second parameter of GetFinalTemperature should be "num" not "mass"

Steps to Reproduce
use a pump to fill up a conduit with 1 element type, create a backlog of conduitcontents all the way to the pump, then the temperature of the merged conduitcontents at the pump tile is incorrect

User Feedback

There are no comments to display.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now