Skip to content

Commit

Permalink
Merge pull request #125 from post-kerbin-mining-corporation/dev
Browse files Browse the repository at this point in the history
Bugfix release
  • Loading branch information
ChrisAdderley authored Oct 26, 2021
2 parents 2bb56a9 + 3972c55 commit db9538f
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 5 deletions.
Binary file modified GameData/CryoTanks/Plugins/SimpleBoiloff.dll
Binary file not shown.
2 changes: 1 addition & 1 deletion GameData/CryoTanks/Versioning/CryoTanks.version
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
{
"MAJOR":1,
"MINOR":6,
"PATCH":2,
"PATCH":3,
"BUILD":0
},
"KSP_VERSION":
Expand Down
7 changes: 4 additions & 3 deletions Source/ModuleSimpleBoiloff.cs
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,7 @@ void SetDebugMode(bool debug)
Fields["D_NetRad"].guiActive = debug;
Fields["D_InSolar"].guiActive = debug;
Fields["D_InPlanet"].guiActive = debug;
Fields["D_InPlanet"].guiActive = debug;
Fields["D_Albedo"].guiActive = debug;
Fields["D_Emiss"].guiActive = debug;

Expand Down Expand Up @@ -385,7 +386,7 @@ public void Update()

if (IsCoolable() && HasAnyBoiloffResource)
{
Fields["CoolingStatus"].guiActive = true;
Fields["CoolingStatus"].guiActiveEditor = true;
Fields["CoolingStatus"].guiActiveEditor = true;

double max = GetTotalMaxResouceAmount();
Expand All @@ -403,7 +404,7 @@ public void Update()
}
else
{
Fields["CoolingStatus"].guiActive = false;
Fields["CoolingStatus"].guiActiveEditor = false;
Events["Disable"].guiActiveEditor = false;
Events["Enable"].guiActiveEditor = false;
}
Expand Down Expand Up @@ -554,7 +555,7 @@ public bool ConsumeCharge()
}

double tolerance = 0.0001;
if (consumedEC >= chargeRequest - tolerance)
if (consumedEC >= (chargeRequest - tolerance))
{
boiloff = false;
BoiloffStatus = Localizer.Format("#LOC_CryoTanks_ModuleCryoTank_Field_BoiloffStatus_Insulated");
Expand Down
4 changes: 4 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
v1.6.3
------
- Bugfixes

v1.6.2
------
- Refactored boiloff code
Expand Down
2 changes: 1 addition & 1 deletion readme.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
=================
Cryo Tanks v1.6.2
Cryo Tanks v1.6.3
=================

A mod pack for Kerbal Space Program, specifically supporting my other mods Kerbal Atomics (https://github.com/ChrisAdderley/KerbalAtomics) and Cryogenic Engines (https://github.com/ChrisAdderley/CryoEngines), dealing with cryogenic fuels, their storage and their properties.
Expand Down

0 comments on commit db9538f

Please sign in to comment.