Skip to content

Commit

Permalink
complain about "negative dry cost" only if value is significant
Browse files Browse the repository at this point in the history
  • Loading branch information
pellinor0 committed Oct 13, 2017
1 parent 58ee2d9 commit d7309ac
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 5 deletions.
Binary file removed GameData/ModuleManager.2.8.0.dll
Binary file not shown.
4 changes: 2 additions & 2 deletions GameData/TweakScale/TweakScale.version
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
"VERSION":{
"MAJOR":2,
"MINOR":3,
"PATCH":6,
"BUILD":1
"PATCH":7,
"BUILD":0
},
"KSP_VERSION":{
"MAJOR":1,
Expand Down
Binary file modified GameData/TweakScale/plugins/Scale.dll
Binary file not shown.
5 changes: 4 additions & 1 deletion PrefabDryCostWriter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,10 @@ private void WriteDryCost()

if (m.DryCost < 0)
{
Debug.LogError("TweakScale::PrefabDryCostWriter: negative dryCost: part=" + p.name + ", DryCost=" + m.DryCost.ToString());
if (m.DryCost < -0.5)
{
Debug.LogError("TweakScale::PrefabDryCostWriter: negative dryCost: part=" + p.name + ", DryCost=" + m.DryCost.ToString());
}
m.DryCost = 0;
}
}
Expand Down
4 changes: 2 additions & 2 deletions Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion( "2.3.6.1")]
[assembly: AssemblyFileVersion("2.3.6.1")]
[assembly: AssemblyVersion( "2.3.7.0")]
[assembly: AssemblyFileVersion("2.3.7.0")]

0 comments on commit d7309ac

Please sign in to comment.