Skip to content

Commit

Permalink
* don't overwrite fields if the exponent is zero
Browse files Browse the repository at this point in the history
* recompile against KSP 1.4.1
  • Loading branch information
pellinor0 committed Mar 14, 2018
1 parent 5e93771 commit ec15dfc
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions GameData/TweakScale/TweakScale.version
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@
"VERSION":{
"MAJOR":2,
"MINOR":3,
"PATCH":9,
"PATCH":10,
"BUILD":0
},
"KSP_VERSION":{
"MAJOR":1,
"MINOR":4,
"PATCH":0
"PATCH":1
},
"KSP_VERSION_MIN":
{
Expand Down
Binary file modified GameData/TweakScale/plugins/Scale.dll
Binary file not shown.
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.9.0")]
[assembly: AssemblyFileVersion("2.3.9.0")]
[assembly: AssemblyVersion( "2.3.10.0")]
[assembly: AssemblyFileVersion("2.3.10.0")]
4 changes: 2 additions & 2 deletions ScaleExponents.cs
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ static private void Rescale(MemberUpdater current, MemberUpdater baseValue, stri
{
v[i] = values[factor.index];
}
else if (!double.IsNaN(exponent))
else if (!double.IsNaN(exponent) && (exponent != 0))
{
if (v[i] is float)
{
Expand Down Expand Up @@ -241,7 +241,7 @@ static private void Rescale(MemberUpdater current, MemberUpdater baseValue, stri
}

}
else if (!double.IsNaN(exponent))
else if (!double.IsNaN(exponent) && (exponent != 0))
{
current.Scale(multiplyBy, baseValue);
}
Expand Down

0 comments on commit ec15dfc

Please sign in to comment.