Skip to content

Commit

Permalink
Merge pull request #35 from edbmods/preset-tweaks
Browse files Browse the repository at this point in the history
Preset-related bug fixes
  • Loading branch information
edbmods authored Jul 31, 2016
2 parents 4136061 + 76e2d62 commit d0309f6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions Source/Page_PrepareCarefully.cs
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ protected void DrawCost(Rect parentRect)

protected void DrawPresetButtons()
{
GUI.color = Color.white;
float middle = 982f / 2f;
float buttonWidth = 150;
float buttonSpacing = 24;
Expand Down
2 changes: 1 addition & 1 deletion Source/Version3/PresetLoaderVersion3.cs
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ public bool Load(PrepareCarefully loadout, string presetName)
HashSet<IExposable> saveables = (HashSet<IExposable>) (typeof(PostLoadInitter).GetField("saveablesToPostLoad", BindingFlags.NonPublic | BindingFlags.Static).GetValue(null));
saveables.Clear();

PrepareCarefully.Instance.Config.pointsEnabled = usePoints;
//PrepareCarefully.Instance.Config.pointsEnabled = usePoints;
}
catch (Exception e) {
Log.Error("Failed to load preset file");
Expand Down

0 comments on commit d0309f6

Please sign in to comment.