Jump to content

[TU] Converters apply conversion interval erroneously


Risu
  • Known Issue

I already posted about this elsewhere, but I figure I better put it up here before everyone loses their minds.

In ElementConverter.ConvertMass the tick rate is set to the conversion interval and then passed to the method on tick.
This is fine. It just ensures there is a single tick being sent and all the work is being done at once.

The problem lies in the conversion code when it deals with the delta time. It was designed for a delta time of 0.1, not the entire run at once.
The output rate was also never multiplied by the delta time because it was handled all at once, unlike the input which was handled every 0.1 seconds.

Now both of them are being multiplied when neither of them should be.

20170316091941_1.jpg
It's a bit broken right now.

Knew this sort of thing was bound to happen when I wrote that post.

 


Steps to Reproduce
Use any building that converts an element in "real time".



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

×
  • Create New...