Skip to content

Commit

Permalink
Merge pull request NecronomiconCoding#1607 from simplyphp/master
Browse files Browse the repository at this point in the history
Fixed default EvolveKeptPokemonsAtStorageUsagePercentage for existing configs
  • Loading branch information
NecronomiconCoding authored Jul 31, 2016
2 parents 8a1ab34 + f0fbd45 commit 168fd51
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions PoGo.NecroBot.Logic/Settings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -523,6 +523,11 @@ public static GlobalSettings Load(string path)
settings.WalkingSpeedInKilometerPerHour = Default.WalkingSpeedInKilometerPerHour;
}

if (settings.EvolveKeptPokemonsAtStorageUsagePercentage <= 0)
{
settings.EvolveKeptPokemonsAtStorageUsagePercentage = Default.EvolveKeptPokemonsAtStorageUsagePercentage;
}

settings.ProfilePath = profilePath;
settings.ProfileConfigPath = profileConfigPath;
settings.GeneralConfigPath = Path.Combine(Directory.GetCurrentDirectory(), "config");
Expand Down

0 comments on commit 168fd51

Please sign in to comment.