[1.190.008][API] IMyMotorStator.Displacement setter always sets to max value.

Digi shared this bug 5 years ago
Outdated

The API code:


// Sandbox.Game.Entities.Cube.MyMotorStator
float IMyMotorStator.Displacement
{
    get
    {
        return this.m_dummyDisplacement;
    }
    set
    {
        value = Math.Max(base.MotorDefinition.RotorDisplacementMin, Math.Max(base.MotorDefinition.RotorDisplacementMax, value));
        this.m_dummyDisplacement.Value = value;
    }
}


It picks the largest value between the given value, the displacement min and the displacement max... that also means you can set it higher than the max.

Replies (1)

photo
1

Hello, Engineer!


Thank you for your feedback! Your topic has been added between considered issues.

Please keep voting for the issue as it will help us to identify the most serious bugs.


We really appreciate your patience.


Kind Regards

Keen Software House: QA Department

Leave a Comment
 
Attach a file