Skip to content

Commit

Permalink
Balanced fuel flow modes tied into existing simulator logic. Allows s…
Browse files Browse the repository at this point in the history
…imulation of new jet engines.
  • Loading branch information
CYBUTEK committed Nov 9, 2015
1 parent 1afcb0f commit ca5ea41
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions KerbalEngineer/VesselSimulator/EngineSim.cs
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,7 @@ public bool SetResourceDrains(List<PartSim> allParts, List<PartSim> allFuelLines
break;

case ResourceFlowMode.ALL_VESSEL:
case ResourceFlowMode.ALL_VESSEL_BAlANCE:

This comment has been minimized.

Copy link
@Praisebetoscience

Praisebetoscience Nov 10, 2015

ALL_VESSEL_BALANCE: has a lowercase l instead of uppercase.

It's ALL_VESSEL_BAlANCE instead of ALL_VESSEL_BALANCE

for (int i = 0; i < allParts.Count; i++)
{
PartSim aPartSim = allParts[i];
Expand All @@ -338,6 +339,7 @@ public bool SetResourceDrains(List<PartSim> allParts, List<PartSim> allFuelLines
break;

case ResourceFlowMode.STAGE_PRIORITY_FLOW:
case ResourceFlowMode.STAGE_PRIORITY_FLOW_BALANCE:

foreach (HashSet<PartSim> stagePartSet in stagePartSets.Values)
{
Expand Down Expand Up @@ -386,6 +388,8 @@ public bool SetResourceDrains(List<PartSim> allParts, List<PartSim> allFuelLines
break;

case ResourceFlowMode.STACK_PRIORITY_SEARCH:
case ResourceFlowMode.STAGE_STACK_FLOW:
case ResourceFlowMode.STAGE_STACK_FLOW_BALANCE:
visited.Clear();

if (SimManager.logOutput)
Expand Down
Binary file modified Output/KerbalEngineer/KerbalEngineer.dll
Binary file not shown.

0 comments on commit ca5ea41

Please sign in to comment.