Skip to content

Commit

Permalink
I hate floats
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanKell authored Apr 29, 2024
1 parent 0dab7c4 commit 0685a49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Engines/SolverRF.cs
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ public override void CalculatePerformance(double airRatio, double commandedThrot
if (velCurveIsp != null)
ispOtherMult *= velCurveIsp.Evaluate((float)mach);
if (throttleIspCurve != null)
ispOtherMult *= Mathf.Lerp(1f, throttleIspCurve.Evaluate(commandedThrottle),
ispOtherMult *= Mathf.Lerp(1f, throttleIspCurve.Evaluate((float)commandedThrottle),
throttleIspCurveAtmStrength.Evaluate(pressureAtm));

if (HighLogic.LoadedSceneIsFlight && varyIsp > 0d && fuelFlow > 0d)
Expand Down

0 comments on commit 0685a49

Please sign in to comment.