Skip to content

Commit

Permalink
Fix Log Spam KSP-RO#27
Browse files Browse the repository at this point in the history
  • Loading branch information
Jamie Leighton authored and keyspace committed Oct 2, 2016
1 parent c2ba9a8 commit f010b18
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions TacLib/Source/PartExtensions.cs
Expand Up @@ -65,10 +65,10 @@ public static double TakeResource(this Part part, PartResourceDefinition resourc
case ResourceFlowMode.STACK_PRIORITY_SEARCH:
return TakeResource_StackPriority(part, resource, demand);
case ResourceFlowMode.STAGE_PRIORITY_FLOW:
Debug.LogWarning("Tac.PartExtensions.TakeResource: ResourceFlowMode.STAGE_PRIORITY_FLOW is not supported yet.");
//Debug.LogWarning("Tac.PartExtensions.TakeResource: ResourceFlowMode.STAGE_PRIORITY_FLOW is not supported yet.");
return part.RequestResource(resource.id, demand);
default:
Debug.LogWarning("Tac.PartExtensions.TakeResource: Unknown ResourceFlowMode = " + resource.resourceFlowMode.ToString());
//Debug.LogWarning("Tac.PartExtensions.TakeResource: Unknown ResourceFlowMode = " + resource.resourceFlowMode.ToString());
return part.RequestResource(resource.id, demand);
}
}
Expand Down Expand Up @@ -102,10 +102,10 @@ public static double IsResourceAvailable(this Part part, PartResourceDefinition
case ResourceFlowMode.STACK_PRIORITY_SEARCH:
return IsResourceAvailable_StackPriority(part, resource, demand);
case ResourceFlowMode.STAGE_PRIORITY_FLOW:
Debug.LogWarning("Tac.PartExtensions.IsResourceAvailable: ResourceFlowMode.STAGE_PRIORITY_FLOW is not supported yet.");
//Debug.LogWarning("Tac.PartExtensions.IsResourceAvailable: ResourceFlowMode.STAGE_PRIORITY_FLOW is not supported yet.");
return IsResourceAvailable_AllVessel(part, resource, demand);
default:
Debug.LogWarning("Tac.PartExtensions.IsResourceAvailable: Unknown ResourceFlowMode = " + resource.resourceFlowMode.ToString());
//Debug.LogWarning("Tac.PartExtensions.IsResourceAvailable: Unknown ResourceFlowMode = " + resource.resourceFlowMode.ToString());
return IsResourceAvailable_AllVessel(part, resource, demand);
}
}
Expand All @@ -119,7 +119,7 @@ private static double TakeResource_NoFlow(Part part, PartResourceDefinition reso
{
if (partResource.flowMode == PartResource.FlowMode.None)
{
Debug.LogWarning("Tac.PartExtensions.TakeResource_NoFlow: cannot take resource from a part where FlowMode is None.");
//Debug.LogWarning("Tac.PartExtensions.TakeResource_NoFlow: cannot take resource from a part where FlowMode is None.");
return 0.0;
}
else if (!partResource.flowState)
Expand All @@ -131,7 +131,7 @@ private static double TakeResource_NoFlow(Part part, PartResourceDefinition reso
{
if (partResource.flowMode == PartResource.FlowMode.In)
{
Debug.LogWarning("Tac.PartExtensions.TakeResource_NoFlow: cannot take resource from a part where FlowMode is In.");
//Debug.LogWarning("Tac.PartExtensions.TakeResource_NoFlow: cannot take resource from a part where FlowMode is In.");
return 0.0;
}

Expand All @@ -143,7 +143,7 @@ private static double TakeResource_NoFlow(Part part, PartResourceDefinition reso
{
if (partResource.flowMode == PartResource.FlowMode.Out)
{
Debug.LogWarning("Tac.PartExtensions.TakeResource_NoFlow: cannot give resource to a part where FlowMode is Out.");
//Debug.LogWarning("Tac.PartExtensions.TakeResource_NoFlow: cannot give resource to a part where FlowMode is Out.");
return 0.0;
}

Expand Down

0 comments on commit f010b18

Please sign in to comment.