Skip to content

Commit

Permalink
Fix lastProgressUpdate not working
Browse files Browse the repository at this point in the history
  • Loading branch information
severedsolo committed Jan 27, 2020
1 parent 62e735e commit c447465
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 38 deletions.
77 changes: 40 additions & 37 deletions .idea/.idea.Bureaucracy/.idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions Bureaucracy/Bureaucracy.cs
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ public void OnLoad(ConfigNode node)
RandomEventLoader.Instance.OnLoad(node);
UiController.Instance.OnLoad(node);
node.TryGetValue("existingSave", ref existingSave);
node.TryGetValue("lastProgressUpdate", ref lastProgressUpdate);
if(progressEvent == null) progressEvent = new ManagerProgressEvent();
Debug.Log("[Bureaucracy]: OnLoad Complete");
}
Expand All @@ -117,6 +118,7 @@ public void OnSave(ConfigNode node)
RandomEventLoader.Instance.OnSave(node);
UiController.Instance.OnSave(node);
node.SetValue("existingSave", existingSave, true);
node.SetValue("lastProgressUpdate", lastProgressUpdate, true);
Debug.Log("[Bureaucracy]: OnSave Complete");
}

Expand Down
2 changes: 1 addition & 1 deletion GameData/Bureaucracy/Bureaucracy.version
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
{
"MAJOR" : 1,
"MINOR" : 1,
"PATCH" : 0,
"PATCH" : 1,
"BUILD" : 0
},
"KSP_VERSION" :
Expand Down
6 changes: 6 additions & 0 deletions GameData/Bureaucracy/Changelog.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@ KERBALCHANGELOG
showChangelog = True
modName = Bureaucracy

VERSION
{
version = 1.1.1
change = Fixed issue where "incremental progress" would try and catch up from Y1 D1 the first time the mod is loaded. The fix is retroactive, so you may see this bug one more time when launching the save after upgrading.
}

VERSION
{
version = 1.1
Expand Down

0 comments on commit c447465

Please sign in to comment.