Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion Distribution/GameData/REPOSoftTech/DeepFreeze/Changelog.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
V0.23.3.0
V0.23.4.0
Fix issue with launching vessels with DeepFreeze parts with greater capacity than previously launched vessels would cause
null reference exceptions, lost DeepFreeze tracking and lost frozen kerbals. Thanks to Gnurfos who found the bug.
V0.23.3.0
Fix Kerbalism Integration.
Freeze Tourists!
DeepFreeze stock application button is not shown in flight unless the active vessel has a DeepFreezer part.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"NAME":"DeepFreeze Continued...",
"URL":"http://ksp-avc.cybutek.net/version.php?id=183",
"DOWNLOAD":"http://spacedock.info/mod/142/DeepFreeze%20Continued...",
"VERSION":{"MAJOR":0,"MINOR":23,"PATCH":3,"BUILD":0},
"VERSION":{"MAJOR":0,"MINOR":23,"PATCH":4,"BUILD":0},
"KSP_VERSION":{"MAJOR":1,"MINOR":2,"PATCH":2},
"KSP_VERSION_MIN":{"MAJOR":1,"MINOR":2,"PATCH":2},
"KSP_VERSION_MAX":{"MAJOR":1,"MINOR":2,"PATCH":2}
Expand Down
14 changes: 10 additions & 4 deletions Source/DFIntMemory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ private void FixedUpdate()
return;

lastFixedUpdateTime = currentTime;
//Check if the active vessel has changed and if so, process.
//Check if the active vessel has changed and if so, process. Should not happen as this is now called via GameEvent
if (HighLogic.LoadedSceneIsFlight)
{
if (FlightGlobals.ActiveVessel.id != ActVslID)
Expand Down Expand Up @@ -898,9 +898,15 @@ private void CheckVslUpdate()
}

// Delete vessels we don't care about any more.
vesselsToDelete.ForEach(id => DeepFreeze.Instance.DFgameSettings.knownVessels.Remove(id));
for (int i = 0; i < vesselsToDelete.Count; ++i)
{
DeepFreeze.Instance.DFgameSettings.knownVessels.Remove(vesselsToDelete[i]);
}
// Delete parts that were part of those vessels.
partsToDelete.ForEach(id => DeepFreeze.Instance.DFgameSettings.knownFreezerParts.Remove(id));
for (int i = 0; i < partsToDelete.Count; ++i)
{
DeepFreeze.Instance.DFgameSettings.knownFreezerParts.Remove(partsToDelete[i]);
}

// Scan through all in-game vessels and add any new ones we don't know about that have a freezer module.
foreach (Vessel vessel in FlightGlobals.VesselsLoaded)
Expand All @@ -927,7 +933,7 @@ private void UpdatePredictedVesselEC(VesselInfo vesselInfo, Vessel vessel, doubl
if (frzrpart.Value.vesselID == vessel.id)
DpFrzrVsl.Add(frzrpart);
}
for (int i = 0; i < DpFrzrActVsl.Count; i++)
for (int i = 0; i < DpFrzrVsl.Count; i++)
{
//calculate the predicated time EC will run out
double timeperiod = Planetarium.GetUniversalTime() - DpFrzrVsl[i].Value.timeLastElectricity;
Expand Down
6 changes: 3 additions & 3 deletions Source/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("DeepFreeze")]
[assembly: AssemblyCopyright("Copyright © 2015-16")]
[assembly: AssemblyCopyright("Copyright © 2015-17")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

Expand All @@ -31,6 +31,6 @@
// 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("0.23.3.0")]
[assembly: AssemblyFileVersion("0.23.3.0")]
[assembly: AssemblyVersion("0.23.4.0")]
[assembly: AssemblyFileVersion("0.23.4.0")]
[assembly: KSPAssembly("DeepFreeze", 0, 23)]