Skip to content

Commit

Permalink
fixed spurious retro move rows
Browse files Browse the repository at this point in the history
  • Loading branch information
Sopel97 committed May 18, 2020
1 parent 67e7c01 commit fc55312
Showing 1 changed file with 8 additions and 11 deletions.
19 changes: 8 additions & 11 deletions src/app/forms/Application.cs
Original file line number Diff line number Diff line change
Expand Up @@ -977,20 +977,17 @@ private void PopulateRetractions(QueryCacheEntry cache, List<GameLevel> levels)
var retractions = cache.Stats.Results[0].Retractions;
var bestScore = GetBestScore(cache.Scores);

foreach (var kv in retractions)
foreach (KeyValuePair<string, SegregatedEntries> entry in retractions)
{
foreach (KeyValuePair<string, SegregatedEntries> entry in retractions)
{
EnumArray<GameLevel, AggregatedEntry> aggregatedEntries =
new InitializedEnumArray<GameLevel, AggregatedEntry>();
EnumArray<GameLevel, AggregatedEntry> aggregatedEntries =
new InitializedEnumArray<GameLevel, AggregatedEntry>();

foreach (GameLevel level in levels)
{
aggregatedEntries[level].Combine(new AggregatedEntry(entry.Value, level));
}

PopulateRetraction(kv.Key, aggregatedEntries, bestScore);
foreach (GameLevel level in levels)
{
aggregatedEntries[level].Combine(new AggregatedEntry(entry.Value, level));
}

PopulateRetraction(entry.Key, aggregatedEntries, bestScore);
}
}

Expand Down

0 comments on commit fc55312

Please sign in to comment.