From 3972c55225dd00b16c460a0ca08a78a1b0725b6b Mon Sep 17 00:00:00 2001 From: Chris Date: Mon, 25 Oct 2021 20:01:21 -0700 Subject: [PATCH] Bugfix release --- GameData/CryoTanks/Plugins/SimpleBoiloff.dll | Bin 20480 -> 20480 bytes .../CryoTanks/Versioning/CryoTanks.version | 2 +- Source/ModuleSimpleBoiloff.cs | 7 ++++--- changelog.txt | 4 ++++ readme.txt | 2 +- 5 files changed, 10 insertions(+), 5 deletions(-) diff --git a/GameData/CryoTanks/Plugins/SimpleBoiloff.dll b/GameData/CryoTanks/Plugins/SimpleBoiloff.dll index 1f80cbbdf531eabf68622ff1d72dcd6714a34800..b15111b16f9f78d035b9bece4d66f9562a91aaea 100644 GIT binary patch delta 598 zcmX}qPiPZC6bA6`?R2-BO}9yGkc2b^rI2Wf^-oe#YBh(Xn}ZjPVoN+2u%OUG1(hCz zG!Rxn5yMKzpwVCJ=%n~Kq*@D8dQ(0EW#gUv1-s!;1R82(rs_iI_*8Q zj`Oe9^8xQkXpr9zC5X=PH{p1={wpnu8rT;wU}0&$)F!^b5gN!yxfn4G1o28~gGogv zW!A)dUsn$G)d}bhC<@Yr~fttBOb1n9a+q0m7K5JCm>XIVL!a zWj}1=jxo+cc=TTx7Qs8Ei$;d+!e^zTnPDU7`D(>#=0O(4AC*m6S)rrT@`g69S~F}n zmX&S@#jrjNesV8Qgn#s2|K&5)!qbnJu1^-Oz2wnj+k+FL?KN4fi8)F@S~NX92b`)D yE2UB@JYMZNZ{t66wNE?WczVtxdr5r(S><}OPJ&jv1?K@DF8|iGPL9)w9r_35WOjA{ delta 608 zcmX}qO=uHA7zW_?+i|y>jhiMmXe4b>Y3`y&bUcU%9+aRrj~>*M(s=VEK@mE$Ssa*wXWsc{7-rVCX>FS})|s#XfQ<*fwk)05 z`0Q)P)4*tFfSd+b%fM`+n3~)7{ z&M&RZkB=`Eay#bhzaJX)kK%mBBzwmH2&!s@U&+R)$Zutz@{1G|q1+!`tBwkq`b~SQ CgLdHn diff --git a/GameData/CryoTanks/Versioning/CryoTanks.version b/GameData/CryoTanks/Versioning/CryoTanks.version index 93ab4a7..0813c53 100644 --- a/GameData/CryoTanks/Versioning/CryoTanks.version +++ b/GameData/CryoTanks/Versioning/CryoTanks.version @@ -6,7 +6,7 @@ { "MAJOR":1, "MINOR":6, - "PATCH":2, + "PATCH":3, "BUILD":0 }, "KSP_VERSION": diff --git a/Source/ModuleSimpleBoiloff.cs b/Source/ModuleSimpleBoiloff.cs index a3965fd..3763f0b 100644 --- a/Source/ModuleSimpleBoiloff.cs +++ b/Source/ModuleSimpleBoiloff.cs @@ -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; @@ -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(); @@ -403,7 +404,7 @@ public void Update() } else { - Fields["CoolingStatus"].guiActive = false; + Fields["CoolingStatus"].guiActiveEditor = false; Events["Disable"].guiActiveEditor = false; Events["Enable"].guiActiveEditor = false; } @@ -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"); diff --git a/changelog.txt b/changelog.txt index c193814..4bfdcf1 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,3 +1,7 @@ +v1.6.3 +------ +- Bugfixes + v1.6.2 ------ - Refactored boiloff code diff --git a/readme.txt b/readme.txt index 7a95488..20845cc 100644 --- a/readme.txt +++ b/readme.txt @@ -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.