Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
siimav committed Jan 6, 2024
2 parents 3fb90c7 + 3a03e74 commit b81b4e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions TestFlightFailure_IgnitionFail.cs
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ public override void DoFailure()
if (multiplier < 0.99)
{
string sPenaltyPercent = $"{(1f - multiplier) * 100f:0.#}%";
FlightLogger.eventLog.Add($"[{met}] {core.Title} failed: Ignition Failure. {(float)(part.dynamicPressurekPa * 1000d)}Pa dynamic pressure caused a {sPenaltyPercent} reduction in normal ignition reliability.");
FlightLogger.eventLog.Add($"[{met}] {core.Title} failed: Ignition Failure. {(float)(vessel.dynamicPressurekPa * 1000d)}Pa dynamic pressure caused a {sPenaltyPercent} reduction in normal ignition reliability.");

if (!dynPressureReminderShown && multiplier < 0.95)
{
Expand Down Expand Up @@ -566,7 +566,7 @@ private float GetDynPressureModifier()
float pressureModifier = 1f;
if (dynPressurePenalties)
{
pressureModifier = Mathf.Clamp(pressureCurve.Evaluate((float)(part.dynamicPressurekPa * 1000d)), 0, 1);
pressureModifier = Mathf.Clamp(pressureCurve.Evaluate((float)(vessel.dynamicPressurekPa * 1000d)), 0, 1);
if (pressureModifier <= 0f)
pressureModifier = 1f;
}
Expand Down

0 comments on commit b81b4e3

Please sign in to comment.