settings: change param to enable/disable depends by the depth
This commit is contained in:
parent
5d432cdcfc
commit
4ee70a8781
6 changed files with 12 additions and 15 deletions
|
@ -52,13 +52,9 @@ func reloadSettings(config settings.FICSettings) {
|
|||
fic.WChoiceCoefficient = config.WChoiceCurCoefficient
|
||||
fic.ExerciceCurrentCoefficient = config.ExerciceCurCoefficient
|
||||
ChStarted = time.Since(config.Start) >= 0
|
||||
if lastRegeneration != config.Generation || fic.PartialValidation != config.PartialValidation || fic.FirstBlood != config.FirstBlood || fic.SubmissionCostBase != config.SubmissionCostBase || fic.SubmissionUniqueness != config.SubmissionUniqueness {
|
||||
if lastRegeneration != config.Generation || fic.PartialValidation != config.PartialValidation || fic.UnlockedChallengeDepth != config.UnlockedChallengeDepth || fic.FirstBlood != config.FirstBlood || fic.SubmissionCostBase != config.SubmissionCostBase || fic.SubmissionUniqueness != config.SubmissionUniqueness {
|
||||
fic.PartialValidation = config.PartialValidation
|
||||
if config.EnableExerciceDepend {
|
||||
fic.UnlockedChallengeDepth = 0
|
||||
} else {
|
||||
fic.UnlockedChallengeDepth = -1
|
||||
}
|
||||
fic.UnlockedChallengeDepth = config.UnlockedChallengeDepth
|
||||
|
||||
fic.FirstBlood = config.FirstBlood
|
||||
fic.SubmissionCostBase = config.SubmissionCostBase
|
||||
|
|
Reference in a new issue