Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion MechJeb2/MechJebModuleStageStats.cs
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ private void GetResults()
else
{
Debug.Log("[MechJebModuleStageStats] atmo stats failed");
if (_vesselManagerAtmo.FuelFlowSimulation.Exception != null)
Debug.Log(_vesselManagerAtmo.FuelFlowSimulation.Exception);
}

if (!_vesselManagerAtmo.FuelFlowSimulation.TryMarkReady())
Expand All @@ -98,10 +100,12 @@ private void GetResults()
else
{
Debug.Log("[MechJebModuleStageStats] vac stats failed");
if (_vesselManagerVac.FuelFlowSimulation.Exception != null)
Debug.Log(_vesselManagerVac.FuelFlowSimulation.Exception);
}

if (!_vesselManagerVac.FuelFlowSimulation.TryMarkReady())
throw new Exception("[MechJebModuleStageStats] Tried to mark a running vcc stage stats as ready.");
throw new Exception("[MechJebModuleStageStats] Tried to mark a running vac stage stats as ready.");
}
}

Expand Down
2 changes: 1 addition & 1 deletion MechJebLib/FuelFlowSimulation/FuelFlowSimulation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ namespace MechJebLib.FuelFlowSimulation
{
public class FuelFlowSimulation : AsyncJob
{
private const int MAXSTEPS = 100;
private const int MAXSTEPS = 10_000;

public readonly List<FuelStats> Segments = new List<FuelStats>();
private FuelStats _currentSegment;
Expand Down
Loading