Skip to content

Commit

Permalink
Merge pull request #101 from BobPalmer/DEVELOP
Browse files Browse the repository at this point in the history
Fixed ground tether and PDU bugs
  • Loading branch information
BobPalmer authored Mar 17, 2017
2 parents e71807d + 2417603 commit abdf7b0
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 9 deletions.
4 changes: 2 additions & 2 deletions FOR_RELEASE/GameData/000_USITools/CHANGELOG.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
0.8.17 - 2017.03.17
0.8.18 - 2017.03.17
-------------------
Dependency Updates
Fixed bugs related to ground tethers and PDU power transfers

0.8.16 - 2017.02.24
-------------------
Expand Down
Binary file modified FOR_RELEASE/GameData/000_USITools/USITools.dll
Binary file not shown.
Binary file modified FOR_RELEASE/GameData/000_USITools/USITools.dll.mdb
Binary file not shown.
Binary file modified FOR_RELEASE/GameData/000_USITools/USITools.pdb
Binary file not shown.
2 changes: 1 addition & 1 deletion FOR_RELEASE/GameData/000_USITools/USITools.version
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"VERSION":{
"MAJOR":0,
"MINOR":8,
"PATCH":17,
"PATCH":18,
"BUILD":0
},
"KSP_VERSION":{
Expand Down
15 changes: 10 additions & 5 deletions USITools/USITools/Logistics/ModuleLogisticsConsumer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -149,12 +149,17 @@ private void CheckLogistics(List<ResourceRatio> resList, bool output)
continue;

var wh = p.FindModulesImplementing<USI_ModuleResourceWarehouse>();
if (wh.Count == 0)
return;
if (wh.Count > 0)
{
if (!wh[0].localTransferEnabled)
continue;
}
else
{
if (res.ResourceName != "ElectricCharge")
continue;
}

if(!wh[0].localTransferEnabled)
continue;

var rr = p.Resources[res.ResourceName];
if (rr.flowState)
{
Expand Down
2 changes: 1 addition & 1 deletion USITools/USITools/ModuleStabilization.cs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public void FixedUpdate()
return;


vessel.SetPosition(nuPos);
//vessel.SetPosition(nuPos);

var c = vessel.parts.Count;
for(int i = 0; i < c; ++i)
Expand Down

0 comments on commit abdf7b0

Please sign in to comment.