Skip to content

Commit

Permalink
Merge pull request #210 from BobPalmer/DEVELOP
Browse files Browse the repository at this point in the history
Fixed recyclers
  • Loading branch information
BobPalmer authored Jan 21, 2017
2 parents 0c4836e + c851fef commit 435432f
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
0.5.20 - 2017.01.21
-------------------
Fixed issue with recyclers not calculating correctly

0.5.19 - 2017.01.16
-------------------
Fixed more log spam
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"VERSION":{
"MAJOR":0,
"MINOR":5,
"PATCH":19,
"PATCH":20,
"BUILD":0
},
"KSP_VERSION":{
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified Source/USILifeSupport/.vs/USILifeSupport/v14/.suo
Binary file not shown.
7 changes: 5 additions & 2 deletions Source/USILifeSupport/LifeSupportManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -309,9 +309,12 @@ internal static double GetRecyclerMultiplier(Vessel vessel)
for(int i = 0; i < vCount; ++i)
{
var v = vList[i];
for (int x = 0; x < rmCount; ++x)
var subRecList = v.FindPartModulesImplementing<ModuleLifeSupportRecycler>();
var subRmCount = subRecList.Count;

for (int x = 0; x < subRmCount; ++x)
{
var r = recList[x];
var r = subRecList[x];
if (r.IsActivated && r.RecyclerIsActive)
{
if (r.AdjustedRecyclePercent > recyclerCap)
Expand Down

0 comments on commit 435432f

Please sign in to comment.